install-wim-tweak.exe /o /c Microsoft.OneDrive.Sync /u
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 /o /r *xbox* install-wim-tweak.exe /o /r *onedrive* install-wim-tweak.exe /o /r "Microsoft.Windows.CloudExperienceHost" For deeper system components like Cortana or Edge WebView, use the /p switch:
install-wim-tweak.exe /o /l /appx