Created
July 30, 2015 06:06
-
-
Save arebee/3bb87840b1b912592a7f to your computer and use it in GitHub Desktop.
PowerShell to get the Windows OS SKU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-WmiObject -Class Win32_OperatingSystem -Namespace "root\cimv2" | format-list Caption, Version |
Caption
is the SKU. For example:
PS G:\code> Get-WmiObject -Class Win32_OperatingSystem -Namespace "root\cimv2" | format-list Caption, Version
>>
Caption : Microsoft Windows 10 Pro
Version : 10.0.19045
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is not the system SKU. That produces the OS build #