Forked from ferdinandosimonetti/win-convert-eval-kms.txt
Last active
March 20, 2020 05:51
-
-
Save dominicusin/1670c40044de7d658bca2140e5812ca7 to your computer and use it in GitHub Desktop.
How to convert Windows Evaluation to Volume License editions
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
| # powershell as administrator | |
| # this key is for Windows Server 2019 Datacenter | |
| DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula | |
| # Other keys: | |
| # W10 | |
| Windows 10 Pro W269N-WFGWX-YVC9B-4J6C9-T83GX | |
| Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43 | |
| Windows 10 Enterprise LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462D | |
| # Windows Server | |
| Windows Server 2019 Datacenter LTSC WMDGN-G9PQG-XVVXX-R3X43-63DFG | |
| Windows Server 2016 Datacenter LTSC CB7KF-BWN84-R7R2Y-793K2-8XDDG | |
| Windows Server Datacenter 1809 6NMRW-2C8FM-D24W7-TQWMY-CWH2D | |
| Dism /Export-Image /SourceImageFile:C:\Users\domini\Downloads\17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1\sources\install.wim /SourceIndex:4 /DestinationImageFile:c:\tmp\install.wim /Compress:max /CheckIntegrity | |
| Dism /Mount-Image /ImageFile:c:\tmp\install.wim /index:1 /MountDir:c:\mnt /Optimize /CheckIntegrity | |
| Dism /Image:c:\mnt /Add-Driver /driver:c:\drivers /recurse | |
| Dism /Image:c:\mnt /set-edition:ServerDatacenter /productkey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /accepteula | |
| Dism /Unmount-Image /MountDir:c:\mnt /Commit /CheckIntegrity | |
| mkdir c:\drivers | |
| dism /online /export-driver /destination:c:\drivers | |
| Dism /Image:c:\mnt /Add-Driver /driver:c:\drivers /recurse | |
| for /R C:\Windows\SoftwareDistribution\Download\ %f in (*.cab) do dism /image:C:\mnt /add-package /packagepath:"%f" | |
| Dism /Image:"C:\mnt" /Cleanup-Image /StartComponentCleanup /ResetBase /ScratchDir:C:\Temp | |
| for /R C:\Windows\SoftwareDistribution\Download\ %f in (*.cab) do dism /image:C:\mnt /add-package /packagepath:"%f" | |
| Dism /Unmount-Image /MountDir:c:\mnt /Commit /CheckIntegrity | |
| Install-Module kbupdate -Scope CurrentUser | |
| Save-KBUpdate -Name KB4538461,KB4538461,KB4538461,KB4537818,4052623,KB4538156,453775,4462930,KB4532691 -Architecture x64 -Path C:\Updates | |
| Dism /Add-Package /Image:C:\mnt /PackagePath:C:\Updates\ | |
| Mount-WindowsImage -ImagePath E:\Setup\Serv\sources\install.wim -Index 1 -Path C:\mnt\ -CheckIntegrity -Optimize -Verbose | |
| Repair-WindowsImage -Path C:\mnt\ -RestoreHealth -Source :WIM:E:\Setup\Serv\install.wim:4 -Verbose | |
| Dismount-WindowsImage -Path C:\mnt\ -Save -CheckIntegrity | |
| Export-WindowsImage -DestinationImagePath C:\tmp\install.wim -SourceImagePath E:\Setup\ORIG\sources\install.wim -SourceIndex 4 -CheckIntegrity -Verbose | |
| Mount-WindowsImage -ImagePath C:\tmp\install.wim -Index 1 -Path c:\mnt\ -CheckIntegrity -Verbose | |
| rem Set-WindowsProductKey -Path c:\mnt\ -ProductKey WMDGN-G9PQG-XVVXX-R3X43-63DFG -Verbose | |
| rem Set-WindowsEdition -Edition ServerDatacenter -Path c:\mnt\ -Verbose | |
| Dism /Image:c:\mnt /set-edition:ServerDatacenter /productkey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /accepteula | |
| Dismount-WindowsImage -Path c:\mnt\ -Save -CheckIntegrity -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment