An easy-to-use and customizable PowerShell script designed to optimize and debloat Windows ISO by removing unnecessary apps & components. Helps to create lightweight, clean ISOs for streamlined installations. Ideal for improved system performance and full control over Windows installation customization.
- Performance Boost: Creates lightweight Windows installations
- Clean Start: Removes pre-installed bloatware before installation
- Customizable: Provides full control over what gets removed from the ISO
- Privacy-Focused: Removes components that may collect telemetry data
- Smaller ISO Size: Reduces the overall size of installation media
The script has been thoroughly tested with:
- Windows 10: Version 22H2 (Build 19045.3757)
- Windows 11: Version 24H2 (Build 26100.1742)
Launch PowerShell as Administrator and execute:
Set-ExecutionPolicy -Scope Process Unrestricted -Force
iwr -useb https://itsnileshhere.github.io/Windows-ISO-Debloater/download.ps1 | iex
- Download the latest release from here
- Extract the downloaded package
- Right-click on the script and select "Run with PowerShell" (as Administrator)
- After launching the script, a prompt will appear to select a Windows ISO file.
- The script will mount the ISO and analyze its contents.
- Options to customize which components to remove will be presented.
- The script will process the ISO according to the selections.
- A debloated ISO will be generated in the same directory as the script.
Components to be removed can be customized by editing the script:
- AppX Packages: Modify the
$appxPatternsToRemove
array to include/exclude Microsoft Store apps - Windows Capabilities: Edit the
$capabilitiesToRemove
array to manage optional Windows features - Windows Packages: Adjust the
$windowsPackagesToRemove
array to control core Windows components
The script includes numerous registry optimizations to:
- Improve system performance
- Enhance privacy settings
- Disable telemetry and data collection
- Remove unnecessary UI elements
The script uses oscdimg.exe
to generate the new ISO file. This tool is:
- Automatically downloaded from Microsoft's servers during script execution
- Used to create a bootable ISO with the modified Windows installation files
For those who prefer to use their own copy of oscdimg.exe:
- Download the "Windows ADK" from Microsoft's official site
- During installation, select only the "Deployment Tools" component
- Navigate to:
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg
- Copy
oscdimg.exe
alongside the script
An alternative, ISO generation method using the IMAPI2FS interface is also available:
- Native Windows COM Objects: Uses native Windows components without requiring external dependencies
- No oscdimg.exe Required: Creates bootable ISOs directly through Windows COM interfaces
- Potentially More Compatible: May work in environments where oscdimg has issues
To use this method:
- Run the
isoDebloaterScript_IMAPI2FS.ps1
script instead of the main script - Follow the same process as with the regular method
- The ISO will be generated using the IMAPI2FS interfaces
The script can remove various components based on preferences, including:
- Pre-installed Bloats: Candy Crush, Disney+, Spotify, TikTok, etc.
- Microsoft Apps: OneDrive, Skype, Teams, Office installers, Edge (optional)
- System Components: Windows Media Player, Windows Fax and Scan, etc.
- Features: Telemetry services, unnecessary language packs, etc.
- tiny11builder for inspiration and approach
- Winaero for registry optimization techniques
- Microsoft for providing oscdimg.exe and Windows ADK tools
This script modifies critical system files within the Windows ISO. While extensively tested, it's provided "as is" without warranties. The author is not liable for any damages that might occur from its use.
- Use at own risk
- Always back up important data before installing a modified Windows version
This project is licensed under the GPL-3.0 License.