GetType Topics | Next

GetType Syntax


One Stepgettype [\\RemoteComputer] [/s]

Where:

\\RemoteComputer
specifies an optional remote computer on which to run GetType.
/s
specifies silent mode.

GetType queries the registry for the workstation's install type, and sets the error level (%ErrorLevel%) as follows:

Error levelMeaning
1Windows NT Workstation
2Windows 2000 Professional installation
3Windows NT Server Non-Domain Controller
4Windows 2000 Server Non-Domain Controller
5Windows NT Server Domain Controller
6Windows 2000 Server Domain Controller
7Windows NT [Enterprise/Terminal] Server Domain Controller
8Windows NT [Enterprise/Terminal] Server Non-Domain Controller