PowerTip: Check Windows 8 Edition by Using PowerShell 3.0

Summary: Use Windows PowerShell 3.0 to determine the specific edition of Windows 8 running on your computer.

Hey, Scripting Guy! Question Using Windows PowerShell 3.0 in Windows 8, how can you determine the edition of Windows that is installed?

Hey, Scripting Guy! Answer Use the Get-WindowsEdition cmdlet with the Online switch:

           Get-WindowsEdition -Online


Comments (5)

  1. Jaap Brasser says:

    Good stuff, if you want to throw this directly to string the complete command becomes:

    (Get-WindowsEdition -Online).Edition

  2. Chris says:

    When I do the command "Get-WindowsEdition -online" i receive an error stating "Get-WindowsEdition: an attempt was made to load a program with an incorrect format."

    Any idea?

  3. AmanAhad says:

    How to find windows version, build number and revision number?

    Click Start, type regedit and press Enter to open the Windows registry
    Navigate to the registry key – HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersion
    On the right panel, you will find the key “CurrentBuildNumber”.The value of this key is your Windows Build Number. Then find a key called “CurrentVersion” and its value is your windows version i.e. the version of your windows vista, windows xp, etc. You will also find keys called “EditionID” and “ProductId” to know the windows edition and product id.

    The key BuildLabEx contains build number and revision number.For example, in the value 6001.17387.x86fre.vistasp1_gdr.070927-1921, the first four digits stand for build number i.e. 6001 and the next five digits stand for windows revision number i.e. 17387. x86 tells you that you are running a 32-bit operating system.
    If any further doubt do let me know.

  4. spook says:

    works for Windows 10 also

  5. Martin Lebel says:

    I’m wondering why does this command require elevation ?

Skip to main content