Powershell: Upgrade Windows Pro to Enterprise

Home / Powershell: Upgrade Windows Pro to Enterprise

Learn how to upgrade your Windows edition with Powershell

If you are running on OEM licenses and finally getting a volume license or you need to change the Windows edition of your clients, you can do this with just a few Powershell commands.

All commands have to be executed on the client. Either use the Invoke-Command cmdlet or start a remote Powershell session. In this example we use a remote session:

Enter-PSSession -ComputerName yourclient

First of all, you can check which edition is active on the client:

Get-WindowsEdition -Online

The -online parameters let the cmdlet check for the active installation instead of an image.
The output looks like:

Powershell Current Windows Edition

Check the currently installed Windows edition

This client is running a professional edition of Windows.

To change the edition of Windows, you have to provide a new key for Windows. Either use your MAK key or one of the KMS client setup keys (if you want Windows to use your KMS).

These 2 commands will a) Connect to the software licensing service and b)change the key of the installed products to your product key:

$sls = Get-WmiObject -Query 'SELECT * FROM SoftwareLicensingService' 
Powershell: Upgrade Windows edition

Upgrade your Windows edition

To verify if the upgrade worked correctly, use the Get-WindowsEdition cmdlet again.

Powershell: Upgraded Windows Edition

Your edition has been upgraded

That’s all you need to do.

You can enhance the commands to upgrade many clients in batch processing or combine them to a script checking for the version and run only if required. Let me know in the comments what your script looks like.

Leave a Reply

Your email address will not be published. Required fields are marked *