How can I tell which version of Windows is currently running?

February 6, 2022 ยท View on GitHub

[Environment]::OSVersion.Version

returns...

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      10586  0

Or (for Windows 10 Anniversary edition)

Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

or perhaps you see...

Major  Minor  Build  Revision
-----  -----  -----  --------
6      1      7601   65536

And you can turn the major/minor into a well known version name, using the table below...

Operating systemVersion number
Windows 1010.0*
Windows Server 201610.0*
Windows 8.16.3*
Windows Server 2012 R26.3*
Windows 86.2
Windows Server 20126.2
Windows 76.1
Windows Server 2008 R26.1
Windows Server 20086.0
Windows Vista6.0
Windows Server 2003 R25.2
Windows Server 20035.2
Windows XP 64-Bit Edition5.2
Windows XP5.1
Windows 20005.0

And is windows a 64 or 32 bit version??

[Environment]::Is64BitOperatingSystem

I suspect that will be true for a long time to come.

Consider also....

[Environment]::Is64BitProcess

Which is described here

You can also run winver.exe which produces a dialog something like this:

WinVer.exe