Skip to content

Instantly share code, notes, and snippets.

@dnguy030
Last active November 17, 2018 01:38
Show Gist options
  • Save dnguy030/6964fd8914a58c8339b7fe1fc6e55b3c to your computer and use it in GitHub Desktop.
Save dnguy030/6964fd8914a58c8339b7fe1fc6e55b3c to your computer and use it in GitHub Desktop.
cd C:\Users\User\Downloads
Dism /Get-WimInfo /WimFile:windows10_1809.esd
Dism /Export-Image /SourceImageFile:windows10_1809.esd /SourceIndex:6 /DestinationImageFile:install.wim /Compress:none /CheckIntegrity
mkdir windows10
Dism /Mount-Image /ImageFile:install.wim /index:1 /MountDir:windows10
Dism /Image:windows10 /Get-Features
Dism /Image:windows10 /Disable-Feature /FeatureName:
Dism /Image:windows10 /Disable-Feature /FeatureName:Printing-XPSServices-Features
Dism /Image:windows10 /Disable-Feature /FeatureName:FaxServicesClientPackage
Dism /Image:windows10 /Disable-Feature /FeatureName:MicrosoftWindowsPowerShellV2Root
Dism /Image:windows10 /Disable-Feature /FeatureName:MicrosoftWindowsPowerShellV2
Dism /Image:windows10 /Get-Packages
Dism /Image:windows10 /Add-Package /PackagePath=windows10.0-kb4467708-x64_7727ab0085a8a32730d35272c7f6f0e616bd23ad.msu
mkdir scratch
Dism /Image:windows10 /Cleanup-Image /StartComponentCleanup /ResetBase /ScratchDir:scratch
Dism /Unmount-Image /MountDir:windows10 /Commit /CheckIntegrity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment