Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Information

Status
Not open for further replies.

pedwards102

Technical User
Feb 4, 2002
2
0
0
US
Hi All

I have a script the copies user information from their local drive to a user share on my network server. I have windows 98 and windows 2000 professional system on my network. My script needs to tell what type of system it is and the user who is logon to the workstation. If the script can gather that information this I would not have hard code my script. Please send help



thanks
 
Try to do a reg Read

Set WshShell = WScript.CreateObject("WScript.Shell")
Wscript.Echo WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion")

That should tell you what version you have. In Windows 98 you might need to look somewhere else in the registry



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top