What gets returned when using PLATFORM, OS, and OS_VERSION in a login script

  • 7005409
  • 28-Feb-2010
  • 26-Apr-2012


Novell NetWare Client32 for Windows 9x/NT/2000/XP
Novell Client for Vista / Windows 7
Microsoft Windows 95/98/NT/2000/XP
Microsoft Windows Vista
Microsoft Windows 7

Formerly TID 2925840


What gets returned when using PLATFORM, OS, and OS_VERSION in a login script


The values for each command are listed below

For PLATFORM the returned value is:
Windows 7                  WNT
Windows Vista            WNT
Windows XP                WNT
Windows 2000 SPx        WNT
Windows 2000                WNT
Windows ME                W98
Windows NT                WNT
Windows 98                W98
Windows 95                W95
MSDOS/Win 3.11                %PLATFORM / WIN

For OS, the returned value is:
Windows 7                   WINNT
Windows Vista             WINNT
Windows XP                WINNT
Windows 2000 SPx        WINNT
Windows 2000                WINNT
Windows Me                WIN98
Windows NT                WINNT
Windows 98                WIN98
Windows 95                WIN95
MSDOS/Win3.11                MSDOS

For OS_VERSION, the returned value is:
Windows 7                    V6.01
Windows Vista              V6.00
Windows XP                 V5.01
Windows 2000 SPx        V5.00
Windows 2000                V5.00
Windows ME                V4.90
Windows NT                V3.51 / V4.00
Windows 98                V4.10
Windows 95                V4.00
MSDOS/WIN 3.11                6.22 / (Values may vary depending on your version of DOS)

For WINVER, the returned value is:
Windows 7                    6.1.7600 7600
Windows Vista              6.0.6000 6000
Windows XP                 5.1.2600 2600
Windows 2000 SPx        5.0.2195 Service Pack x
Windows 2000                5.0.2195 2195,
Windows ME                4.90.3000
Windows NT 4                4.0.1381 Service Pack x
Windows 98                4.10.1998
Windows 95                4.00.950x
MSDOS/WIN3.11                N/A - (Only Available on IntranetWare NT 4.11 and 95/3.x 2.20 or later Clients)

If the workstation does not report the above, then either using the Microsoft client, which reports back MSDOS in some cases as the OS on WIN95 and WINNT, is being used. Or, an earlier release of Client32 is installed. The original release of client32 reported v7.00 as the OS_VERSION of WIN95.

Example usage in Login script:


        ...any login script command

The above syntax will test to see if the workstation is a windows NT machine, and if so, execute any login script command that follows..

Additional Information

Formerly known as TID# 10022819