Skip to content

A PowerShell script to automate the debloating process for Windows ISO images.

License

Notifications You must be signed in to change notification settings

itsNileshHere/Windows-ISO-Debloater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows-ISO-Debloater

Stars Version

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.

🧪 Tested Versions

The script has been tested with:

  • Windows 10: Version 22H2 (Build 19045.3757)
  • Windows 11: Version 23H2 (Build 22631.4037)

⚠️ Should work with other versions too

🚀 How to Use

  1. Launch PowerShell as ADMINISTRATOR and execute the following commands
Set-ExecutionPolicy Unrestricted -Force
iwr -useb https://itsnileshhere.github.io/Windows-ISO-Debloater/download.ps1 | iex

💡 Alternatively, you can manually download the script from here and execute it using PowerShell with ADMINISTRATOR privileges.

  1. Select Windows ISO from the dialogue. Follow the instructions.
  2. The ISO will be generated in the same directory where the script is located.
  3. To whitelist a package, simply comment out its name in the script.

🛠️ Customization Options

Package removal can be customized by modifying the following sections of the script:

  • Packages to remove
  • Features to remove
  • Registry tweaks

⚙️ Using Oscdimg

The script downloads "oscdimg.exe", used to generate the ISO, from Microsoft's website. If you have any doubts, you can download it using the following steps:

  1. Download the "Windows ADK" Package from Microsoft.
  2. Run the setup. During installation, only check the "Deployment Tools" option and continue the installation.
  3. After installing, navigate to "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg". The "oscdimg.exe" file will be located there.
  4. Copy the file and paste it alongside the script."

🌟 Credits

  1. tiny11builder for idea
  2. Winaero for a bunch of Registry Tweaks

⚠️ Note: This script modifies the Windows ISO. Use it at your own risk.