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
ddy1954

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
chev65

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



Similar help and support threads for2: vbscript to pull computer name/domain for Win 7 enterprise computers
Thread Forum
Windows 7 Domain Computers Problem with copies to network drives Network & Sharing
Account Operators, Domain Admins, Enterprise Admins System Security
Account Operators group, the Domain Admins group, the Enterprise Admin Customization

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 09:41 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App