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
Thread Forum
Several domain computers have Explorer.exe crash on network drive
We have several people with Explorer.exe crashes when they open to a network drive. I've tried the folder view reset registry fix. Also used shexview to disable some extensions but still have crashes. It seems to follow the user to a new computer as well. Different users in different departments....
BSOD Help and Support
Unsolicited Remote Assistance of non-domain computers
is there a way of enabling unsolicited Remote Assistance on computers that dont belong to a domain? I tried setting up and enabling unsolicited Remote Assistance from GPO, but I cannot specify 'Helpers' since this has to be a domain group.. turning it for everyone should be fine as well if there...
Network & Sharing
Computer Fans, Push or Pull?
Hi, I'm going to be buying a few fans for my computer case but was wondering which type of fans would be best? From what I've read up online there's static pressure fans and there's air flow fans; SP fans are best for push whilst attached to heatsinks and radiators etc whilst air flow is best for...
PC Custom Builds and Overclocking
Windows 7 computer can see other computers on domain, others can't
I'm having a really weird issue with a Windows 7 computer at my workplace. The computer can see and access the other computers on the domain, but other computers can't access it. (They can, however, see it on the domain.) I've checked everything from the firewall to various domain login scripts...
Network & Sharing
How to have computers on a domain access each other
I have a small domain - Windows 2000 - with several computers, including a Linux server connected via Samba. One computer (work station) runs Windows 7 and another (notebook) runs Windows 8. I would like to have the notebook able to send files to the workstation. What do I need to change so this...
Network & Sharing


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 06:48.
Twitter Facebook Google+