vienxu 0 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. Share this post Link to post Share on other sites
Westi 0 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. Share this post Link to post Share on other sites
vienxu 0 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.<{POST_SNAPBACK}>Thank you Very MUCH. Share this post Link to post Share on other sites