The WinVer object is retrieved from the Version.winver property. It provides information about the current version of Windows.

Property Name Return Type Description

<default value>

string

Full Windows version string.

server

bool

True if running on a Server edition of Windows.

xp

bool

True if running on Windows XP.

xporbetter

bool

True if running on Windows XP or better (this will always be true).

vista

bool

True if running on Windows Vista.

vistaorbetter

bool

True if running on Windows Vista or better (later).

win7

bool

True if running on Windows 7.

win7orbetter

bool

True if running on Windows 7 or better.

win8

bool

True if running on Windows 8.

win8orbetter

bool

True if running on Windows 8 or better.

win81

bool

True if running on Windows 8.1.

win81orbetter

bool

True if running on Windows 8.1 or better.

win10

bool

True if running on Windows 10.

win10orbetter

bool

True if running on Windows 10 or better.

win11

bool

True if running on Windows 11.

win11orbetter

bool

True if running on Windows 11 or better.