vienxu Posted June 16, 2005 Posted June 16, 2005 How can I determine if a PC is a 2000 Pro or 2000 Server? @OSVersion only tell me a device is 2000 but it can't tell me if it is a 2000 Pro or server. Thanks.
Westi Posted June 16, 2005 Posted June 16, 2005 This should be the same for W2k as it is in XP: $ver = RegRead("HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions", "ProductType") If $ver = "WinNT" then MsgBox(4096, @OSVersion , "Your system is a workstation") If $ver = "ServerNT" then MsgBox(4096, @OSVersion , "Your system is a server") It is not possible to manipulate this entry, so this method is the best.
vienxu Posted June 16, 2005 Author Posted June 16, 2005 Westi said: This should be the same for W2k as it is in XP:$ver = RegRead("HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions", "ProductType") If $ver = "WinNT" then MsgBox(4096, @OSVersion , "Your system is a workstation") If $ver = "ServerNT" then MsgBox(4096, @OSVersion , "Your system is a server")It is not possible to manipulate this entry, so this method is the best.<{POST_SNAPBACK}>Thank you Very MUCH.
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