How to change OS Edition using commands

How to change OS Edition using commands


1) Open power shell


2) Run command "DISM /online /Get-CurrentEdition"
    It will give you current edition of the server
    (DISM is deployment image servicing and management tool)


3) Run command "DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula,"
Enter edition you want to upgrade (I have added datacenter in command) and product key
It will install this product key and change edition to datacenter


4) Run command "DISM /online /Get-CurrentEdition" again to verify edition of OS

Comments