假設 install.wim 所在目錄為:D:\CustomWin11 wim 掛載目錄:D:\CustomWin11\WIM 將索引3 中指定的 AppXProvisioned Package 移除 PowerShell # 列出 install.wim 的索引資訊: dism /get-wiminfo /wimfile:D:\CustomWin11\install.wim 上圖可知,此映像有五個索引,所以要針對每一個索引做處理 PowerShell # 掛載每個索引 範例 dism /mount-wim /wimfile:D:\CustomWin11\install.wim /index:3 /mountdir:D:\CustomWin11\WIM PowerShell # 列出預配置的應用 dism /image:D:\CustomWin11\WIM /get-provisionedappxpackages PowerShell # 移除不需要的應用 dism /image:D:\CustomWin11\WIM /remove-provisionedappxpackage /packagename:Microsoft.YourAppName_* PowerShell $apps=@( #"Microsoft 新聞、搜尋、天氣" "*Bing*" #"Xbox" "*xbox*" "*Gaming*" #"Office 365" "*MicrosoftOfficeHub*" #"Solitaire & Casual Games" "*SolitaireCollection*" #"Outlook for Windows" "*OutlookForWindows*" #"Goove Music" "*ZuneMu...