Discussion Locked

Windows 2000 Environment Variables

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know why Windows 2000 Professional changes the OS variable back to "Windows_NT" everytime it reboots as I have changed it to Windows_2000 for the purpose of login scripts.

3 replies

by bill_h

This is a legacy setting - Windows 2000 was originally known as Windows NT 5.0, and the value for the OS variable reflects its heritage.

For more info, refer to the MSDN article "Environment Variables in Windows NT", which is located at:

http://support.microsoft.com/support/kb/articles/Q100/8/43.asp

(If the URL above does not work, locate and remove any spaces inserted by the TechRepublic system.)

You could resolve this in a couple of ways. First, as stated in the article, the NTVERSION variable is no longer in use. You could create this yourself, and assign a value. You could also create a new user variable for the same purpose.

Hope this helps...

by ross.bale

This was very helpfull - thanks. If anyone else is interested, I have found a registry key that is unique across Win9x/NT/2000. HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\CURRENTVERSION. The key is also called CurrentVersion, it is blank on Win9x, 4.0 on NT and 5.0 on Windows 2000.

This discussion is closed to new replies.