> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Get Windows Version
- URL: https://www.filipkonopik.com/powershell-get-windows-version/
- Published: 2026-07-17T08:23:26.000Z
- Updated: 2026-08-06T05:21:00.000Z
- Author: Filip Konopík
- Tags: System Info

Windows version mismatches cause more troubleshooting headaches than they should. This one-liner gets you the exact build in seconds.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```Powershell
Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object Caption, Version
```

Example Output:

```Powershell
Caption                  Version
-------                  -------
Microsoft Windows 11 Pro 10.0.26200
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Get-CimInstance queries the Win32\_OperatingSystem WMI class, which stores information about the installed operating system.
- Caption shows the human-readable edition name (e.g. Windows 11 Pro, Windows 10 Enterprise).
- Version shows the internal build version in major.minor.build format - this is the number you'll want when checking application compatibility or confirming whether a machine has a specific feature update installed.
- Select-Object limits the output to just these two properties, since Win32\_OperatingSystem returns a lot more data (like BuildNumber, OSArchitecture, or InstallDate) that isn't needed for a quick version check.