Install-wim-tweak.exe [work] -
This guide will walk you through a specific task: removing the Microsoft Edge browser from a live Windows 10 or 11 system. Always back up your data before proceeding.
It takes ownership of locked registry keys from the TrustedInstaller system account.
Windows manages its optional features and system components through specific registry keys located under the Component Based Servicing (CBS) hive. install-wim-tweak.exe
install-wim-tweak.exe /p /h "Windows-Defender-Client"
The primary mechanism of install-wim-tweak.exe is its ability to find specific servicing packages, strip away their "permanent" or "locked" flags, and allow administrators to execute clean uninstalls. Power users often bundle it into script-based debloaters like early versions of Win10BloatRemover on GitHub . 2. Key Features and Capabilities This guide will walk you through a specific
: Removing "permanent" components can break Windows Update, the Microsoft Store, or cause system-wide crashes (BSOD).
: Stripping out the "Customer Experience Improvement Program" and other data-gathering tools. Removing Microsoft Edge or Cortana Windows manages its optional features and system components
| Parameter | Description & Example | | :--- | :--- | | | Displays the tool's help screen, which lists all available commands and switches. | | /l | Lists all packages (e.g., Microsoft-Windows-Holographic-... ) within a target image or the currently installed OS. The output is written to a text file called packages.txt in the same directory as the tool. | | /p <MountPath> | Targets a mounted Windows image (e.g., extracted from an ISO) for modification. Requires specifying the path where the image has been mounted. | | /o | Targets the currently installed, online operating system for modifications, instead of an offline image. | | /c <ComponentName> | Specifies a particular component package to "un-hide" or remove. Used in conjunction with /p or /o . | | /r | Removes the target component specified with /c . Without /r , the tool only "un-hides" it. | | /h | Restores (re-hides) components back to their default state, effectively undoing changes made without the /h flag. Must be used after a non- /h operation. | | /n | Speeds up the process by skipping the creation of backup files. Use with caution as it prevents an easy restore of the removed component. | | /d | Prevents the tool from deleting ownership keys in the registry, which are used to track a component's owner. |