Install-wim-tweak.exe -
| Feature to Disable | Typical Package Name (partial) |
|--------------------|--------------------------------|
| Windows Defender | Windows-Defender-Client |
| OneDrive | Microsoft-OneDrive-Setup or OneDrive |
| Cortana | Microsoft-Windows-Cortana |
| Edge (Legacy) | Microsoft-Windows-Internet-Browser |
| Windows Mail | Microsoft-Windows-Communications-Applications |
Note: In Windows 11, many of these are tightly integrated – hiding may break search or settings.
After a reboot, Windows skips loading those components, effectively removing them.
Despite Microsoft’s efforts to lock down Windows components, install-wim-tweak.exe remains highly relevant. Here’s why:
That said, its future is uncertain. Windows 12 (if released) may use a completely new component model. For now, it remains an essential tool in the deployment engineer’s toolbox.
While there are GUI versions (like the MSMG Toolkit or Win Toolkit that incorporate this logic), the command line is the most direct way. install-wim-tweak.exe
1. The "Unhide" Command To make all hidden packages visible to DISM:
install-wim-tweak.exe /o /l
2. Removing a Package
Once unhid, you can find the package name (usually a cryptic string like Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~~10.0.19041.1) and use standard DISM commands to remove it:
dism /online /
Install-WIM-Tweak.exe is a specialized command-line utility used by advanced Windows users and system administrators to manage and remove "unremovable" Windows components. It is most commonly used to strip bloatware, such as Windows Defender, Cortana, or telemetry services, from Windows images or live installations. Key Functions Component Unlocking
: Windows flags many built-in features as "permanent" or "hidden," preventing them from being uninstalled via the Control Panel. This tool modifies the component's registry keys to make them removable. WIM Customization
: It is frequently used during the "image slimming" process, where a Windows Imaging Format | Feature to Disable | Typical Package Name
(.wim) file is modified before deployment to create a lightweight version of the OS (like "Tiny10" or "AtlasOS"). Package Management
: It works by interacting with the Windows Servicing Stack (DISM) to force the uninstallation of specific packages. Common Use Cases Removing Windows Defender
: Often used in gaming-optimized OS builds to reduce CPU overhead. Disabling Telemetry
: Stripping out the "Customer Experience Improvement Program" and other data-gathering tools. Removing Microsoft Edge or Cortana
: Deleting core apps that Microsoft typically bundles as non-removable. How it Works (Technical) The tool typically targets the Microsoft-Windows-Foundation-Package Note : In Windows 11, many of these
. It searches for specific component names and changes their status from "Permanent" to "Removable." Once the status is changed, a standard command like dism /online /remove-package can successfully delete the component. Important Warnings System Stability
: Because it removes core components, using it incorrectly can lead to "Blue Screen of Death" (BSOD) errors, broken Windows Updates, or a non-bootable system.
: Once a package is stripped using this method, it is often impossible to reinstall it without a full OS repair or reinstall. Security Risk
⚠️ Important Warning: Using this tool incorrectly can break Windows updates, cause system instability, or require a reinstall. Only use it if you understand Windows component servicing. Always test in a virtual machine first.
| Use Case | Description | |----------|-------------| | Creating a "Debloated" Windows ISO | Remove pre-installed apps like Candy Crush, Skype, Xbox, and News before installation. | | Enterprise Customization | Remove consumer features not needed in a business environment. | | Performance Tuning | Disable background services and telemetry components to reduce resource usage. | | Privacy Enhancement | Remove or disable Microsoft’s data-collecting components (e.g., DiagTrack, OneDrive, Cortana). |
Always keep the original install.wim before tweaking. You can also use DISM to export a modified image as a new file:
dism /export-image /sourceimagefile:C:\win11_tweaked.wim /sourceindex:1 /destinationimagefile:C:\win11_clean.wim /compress:max