
Gettype for Windows 2000 doesn't work?
Quote:
> The gettype tool does not seem to recognize the Windows 2000 OS. For
> example, on a Win2k professional it is supposed to return an error level
> of 2 but it incorrectly returns a value of 1 - meaning that the box is
> Windows NT.
I might also suggest my free osver.exe, which also works on Windows 9x/Me
(gettype.exe is NT-only)...
http://www.oregonclassifieds.net/utilities/files/admtool2.zip
Usage: OSVER [-s] [-t] [-q]
Without -s or -t, returns OS version as an exit code value:
0 = Unknown OS
1 = Windows 95
2 = Windows 98
3 = Windows Me
4 = Windows NT 4.0
5 = Windows 2000
6 = Windows XP
With -s, returns the NT (or later) service pack number as an
exit code value. -s on a non-NT system returns an exit code of 99.
With -t, returns NT type:
0 = Not running NT/failed to determine NT type
1 = Workstation
2 = Server (not domain controller)
3 = Server (domain controller)
-q specifies quiet mode (no output).