(a) are comfortable with DISM and command line, (b) need to permanently remove Edge/OneDrive from a golden image before deployment, and (c) accept the risks of breaking Windows Update. For single-machine debloating, use modern PowerShell scripts instead.
install-wim-tweak.exe /p "OneDriveSetup" /d install-wim-tweak.exe /p "Microsoft.Windows.OneDrive" /d install-wim-tweak.exe
install-wim-tweak.exe /o /l
To use the tool, you must run it from an elevated Command Prompt. Below are the most common switches used for tweaking: install_wim_tweak.exe /o Un-hides all packages on the OS. install_wim_tweak.exe /p Un-hides all packages in a mounted image ( install.wim ). install_wim_tweak.exe /o /l (a) are comfortable with DISM and command line,
For system administrators and power users, this tool is primarily used for and privacy hardening . Below are the most common switches used for
Windows uses a package repository to manage features. Many features (like legacy components, specific codecs, or telemetry services) are present on your hard drive but are "hidden" in the registry, preventing you from removing or enabling them via standard DISM commands.