subject: how to extract LAN details from registry from command line
posted: Mon, 2 Oct 2000 14:36:20 +0100


enter this command at the commandline to get a list of local
network shares:

regedit /e locshare.txt
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVers
ion\Network\LanMan

this command gets the workgroup, computername and bunch of
other stuff:

regedit /e lan-info.txt
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD
\VNETSUP

this command simply gets the computername:

regedit /e compname.txt
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Comp
uterName\ComputerName

this command gets the username:

regedit /e username.txt HKEY_LOCAL_MACHINE\Network\Logon

the NET CONFIG command displays the computername,
workgroup and username, but only if the user is logged in. The
commands above work even if Windows is not running!

Yes, I am working on integrating the four output files into a single
nicely-formatted text file.

Stuart

generated by msg2page 0.06 on Jul 21, 2006 at 19:05:08

 search:
this site only