:: Get image index (usually 6 for Pro) dism /get-imageinfo /imagefile:C:\win11.wim
In this comprehensive guide, we will explore every facet of install-wim-tweak.exe : what it is, how it works, its primary use cases, step-by-step instructions, safety precautions, alternatives, and its place in modern Windows deployment (Windows 10 and 11). install-wim-tweak.exe is a third-party command-line utility originally developed by a member of the MDL (My Digital Life) forums. Its primary purpose is to modify the permission attributes (specifically, the "visibility" and "uninstallability") of Windows packages, features, and apps within an offline Windows image (a .wim file) or within a running Windows installation.
install-wim-tweak.exe /o /l /appx
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: