I need a script to just determine if a Windows machine is a workstation or a server OS.
I do NOT need to know the following....
1) If the OS is something other than Windows
2) The exact build # or service pack level of the OS
3) The exact OS type
All I need the script to do is check to see if the OS is a Windows Server OS or not.
I can't use "ver | find" because some build numbers are identical for workstation and server OS
I can't use the read the following registry key...
...because it displays the same info for Win2000 workstation and Win2000 server
I am looking for a simple solution. Thanks