|   | 10 | == Modify a Windows Installation Image == | 
          
          
            |   | 11 |  | 
          
          
            |   | 12 | === requirements === | 
          
          
            |   | 13 |  | 
          
          
            |   | 14 |   * Windows 8 (ISO: sources\install.wim) | 
          
          
            |   | 15 |   * commands are executed on a Windows 7 system. Should also work on a Windows 8 system (Windows 8 have a few additional option, like /Mount-Image instead of /Mount-Wim) | 
          
          
            |   | 16 |  | 
          
          
            |   | 17 | {{{ | 
          
          
            |   | 18 | dism /get-wiminfo /wimfile:sources\install.wim | 
          
          
            |   | 19 |  | 
          
          
            |   | 20 | dism /mount-wim /wimfile:sources\install.wim /index:1 /mountdir:c:\win8\mnt | 
          
          
            |   | 21 |  | 
          
          
            |   | 22 | # add language packs from Language Pack ISO     | 
          
          
            |   | 23 | dism /image:c:\win8\mnt /scratchdir:c:\tmp /add-package /packagepath:c:\win8\langpacks\en-gb\lp.cab /packagepath:c:\win8\langpacks\en-us\lp.cab /packagepath:c:\win8\langpacks\de-de\lp.cab | 
          
          
            |   | 24 |  | 
          
          
            |   | 25 | dism /image:c:\win8\mnt /Get-Intl | 
          
          
            |   | 26 |  | 
          
          
            |   | 27 | # set default settings to German, but UI to en-US | 
          
          
            |   | 28 | dism /image:c:\win8\mnt /Set-AllIntl:de-DE | 
          
          
            |   | 29 | dism /image:c:\win8\mnt /Set-uilang:en-US | 
          
          
            |   | 30 | (dism /image:c:\win8\mnt /set-syslocale:de-DE) | 
          
          
            |   | 31 |  | 
          
          
            |   | 32 | # show included custom packages | 
          
          
            |   | 33 | dism /image:c:\win8\mnt /Get-packages | 
          
          
            |   | 34 |  | 
          
          
            |   | 35 | # show features | 
          
          
            |   | 36 | dism /image:c:\win8\mnt /Get-features | 
          
          
            |   | 37 |  | 
          
          
            |   | 38 | dism /image:c:\win8\mnt /enable-feature  /featurename:telnetclient | 
          
          
            |   | 39 | # (/featurename:netfx3: doesn't work, because sources are not included) | 
          
          
            |   | 40 |  | 
          
          
            |   | 41 | dism /image:c:\win8\mnt /Get-ProvisionedAppxPackages | 
          
          
            |   | 42 |  | 
          
          
            |   | 43 | dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage /packagename:Microsoft.XboxLIVEGames_1.0.927.0_x64__8wekyb3d8bbwe | 
          
          
            |   | 44 | dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage  /packagename:microsoft.microsoftskydrive_16.4.4204.712_x64__8wekyb3d8bbwe | 
          
          
            |   | 45 | dism /image:c:\win8\mnt /Remove-ProvisionedAppxPackage  /packagename:Microsoft.BingSports_1.2.0.135_x64__8wekyb3d8bbwe | 
          
          
            |   | 46 |  | 
          
          
            |   | 47 | dism /image:c:\win8\mnt /cleanup-image /StartComponentCleanup | 
          
          
            |   | 48 |  | 
          
          
            |   | 49 | dism /unmount-wim /mountdir:c:\win8\mnt /commit | 
          
          
            |   | 50 | }}} | 
          
          
            |   | 51 |  |