JSI Tip 3032. Am I logged onto Windows NT or Windows 2000?

Jerold Schulman

November 13, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


In tip 1826 and links, we can determine what type of Windows NT or Windows 2000 you are logged onto.

If you are looking for a simple script snipit, try:

if /i NOT "%OS%"=="Windows_NT" goto W9xVer|Find /i "Windows NT">NULIf ErrorLevel 1 GoTo W2KREM Windows NT heregoto continue:W2KREM Windows 2000 hereGoTo continue:w9xREM Not WinNT or W2K:continue


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like