BlazeLondon Posted March 3, 2006 Posted March 3, 2006 Is there any way of determining if the script runs on a server or a workstation? @OSType Returns "WIN32_NT" for NT/2000/XP/2003 and returns "WIN32_WINDOWS" for 95/98/Me @OSVersion Returns one of the following: "WIN_2003", "WIN_XP", "WIN_2000", "WIN_NT4", "WIN_ME", "WIN_98", "WIN_95" and "WIN_6.0", "WIN_6.1" that will change with the official release
Joon Posted March 3, 2006 Posted March 3, 2006 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions\ProductTypeServerNT for Member ServerLanmanNT for Domain ControllerWinNT for WorkstationAnother easy way is parsing out NET ACCOUNTS
CyberSlug Posted March 3, 2006 Posted March 3, 2006 Joon beat me to it.http://www.autoitscript.com/forum/index.php?showtopic=12560http://www.autoitscript.com/forum/index.php?showtopic=20410 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now