Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: vbscript to pull computer name/domain for Win 7 enterprise computers


25 Jul 2013   #1

Win 7 enterprise 32bi
 
 
vbscript to pull computer name/domain for Win 7 enterprise computers

I currently have a vbscript to report various information on multiple Win 7 computer on the network. I need to modify the script to report the computer name and domain the computer is connected to. Where is computer name/domain stored? I have searched the Registry and found the Computer name but can't find the domain.


My System SpecsSystem Spec
.

25 Jul 2013   #2

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by ddy1954 View Post
I currently have a vbscript to report various information on multiple Win 7 computer on the network. I need to modify the script to report the computer name and domain the computer is connected to. Where is computer name/domain stored? I have searched the Registry and found the Computer name but can't find the domain.
If the machine is a member of a Domain it should be located at > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Domain

If the value is empty or if \Domain isn't showing up then it is not a member of any domain.
If it is a member, the value equals the domain name.

I see the name at > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName
My System SpecsSystem Spec
Reply

 vbscript to pull computer name/domain for Win 7 enterprise computers




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:56 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33