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


  1. Posts : 1
    Win 7 enterprise 32bi
       #1

    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 Computer


  2. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #2

    ddy1954 said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:43.
Find Us