gettype [\\RemoteComputer] [/s]
Where:
GetType queries the registry for the workstation's install type, and sets the error level (%ErrorLevel%) as follows:
Error level | Meaning |
---|---|
1 | Windows NT Workstation |
2 | Windows 2000 Professional installation |
3 | Windows NT Server Non-Domain Controller |
4 | Windows 2000 Server Non-Domain Controller |
5 | Windows NT Server Domain Controller |
6 | Windows 2000 Server Domain Controller |
7 | Windows NT [Enterprise/Terminal] Server Domain Controller |
8 | Windows NT [Enterprise/Terminal] Server Non-Domain Controller |