Install-wim-tweak.exe -

:: Mount index 6 to C:\mount dism /mount-image /imagefile:C:\win11.wim /index:6 /mountdir:C:\mount cd C:\tools :: List all Appx packages in the mounted image install-wim-tweak.exe /o /l /appx > C:\appx-list.txt

install-wim-tweak.exe /[Mode] /[Package|Feature|Appx] /[Action] [Path|PackageName] | Switch | Description | |--------|-------------| | /o | Offline mode – target a mounted WIM folder (e.g., C:\mount\windows ) | | /l | List all components in the image | | /p | Target a specific package by name | | /c | "Commit changes" – makes the tweak permanent | | /s | Silent mode – suppresses on-screen output | | /r | Remove the component (requires prior tweak or /u flag) | | /u | Mark component as uninstallable (the core function) | | * | Wildcard – applies to all matching packages | Example Commands: List all Appx packages in a mounted offline image: install-wim-tweak.exe

:: Target specific package install-wim-tweak.exe /o /c "Microsoft.Windows.CloudExperienceHost" /u Now use the /r flag to remove: :: Mount index 6 to C:\mount dism /mount-image

dism /image:C:\mount /remove-package /packagename:Microsoft.OneDrive.Sync Limitation: Most "inbox" apps are protected. Works on mounted images but fails for protected packages: install-wim-tweak.exe

Scroll to Top