General discussion

Locked

Windows 2000 Environment Variables

By ross.bale ·
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.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Windows 2000 Environment Variables

by Bill_H In reply to Windows 2000 Environment ...

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...

Collapse -

Windows 2000 Environment Variables

by ross.bale In reply to Windows 2000 Environment ...

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.

Collapse -

Windows 2000 Environment Variables

by ross.bale In reply to Windows 2000 Environment ...

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums