3dMosquito
August 10th, 2001, 06:25 AM
Has anyone played with this stuff?
I have found these examples out on the web in a hundred places, but not being too familar with vb script, im kinda lost.
at my job I have a need to pull the computer name of the users who visit our intranet.
Any help with the syntax i should be using would be greatly appreciated
these are the only examples of stuff i have found out there but cant get them too work
they are found on the msdn site and on this site
http://www.devguru.com/technologies/wsh/quickref/wshshell_regread.html
I was working off the assumption that these are vbscript calls, am i way off base?
if anyone out there could help me out with the correct syntax i'd be forever greatful.
the actual reg key that i want to query is
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.RegRead("HKCU\MyNewKey\MyValue")
WScript.Echo WshShell.RegRead("HKCU\MyNewKey\")
I have found these examples out on the web in a hundred places, but not being too familar with vb script, im kinda lost.
at my job I have a need to pull the computer name of the users who visit our intranet.
Any help with the syntax i should be using would be greatly appreciated
these are the only examples of stuff i have found out there but cant get them too work
they are found on the msdn site and on this site
http://www.devguru.com/technologies/wsh/quickref/wshshell_regread.html
I was working off the assumption that these are vbscript calls, am i way off base?
if anyone out there could help me out with the correct syntax i'd be forever greatful.
the actual reg key that i want to query is
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.RegRead("HKCU\MyNewKey\MyValue")
WScript.Echo WshShell.RegRead("HKCU\MyNewKey\")