A security-focused Windows 11 debloating script that removes unnecessary bloatware while preserving system integrity, Windows Defender, and critical Windows Update functionality.
- Non-essential Microsoft Store apps (News, Weather, etc.)
- Unnecessary pre-installed applications
- Optional features like Internet Explorer
- Sponsored content and suggestions
- Non-critical background services
- Tablet PC components (if not needed)
- Windows Defender and security components
- Windows Update functionality
- Keeps system serviceability intact
- Creates System Restore points
- Logs all operations for review
- Verifies system integrity after modifications
- Windows 11 (any edition)
- Administrator privileges
- PowerShell 5.1 or later
- Download
safe-debloat.ps1
- Right-click and select "Run with PowerShell"
- If prompted, enter
Y
to confirm execution - Wait for the script to complete
- Restart your computer
# Or run from PowerShell Admin prompt:
Set-ExecutionPolicy Bypass -Scope Process -Force
.\safe-debloat.ps1
The script creates detailed logs at:
%USERPROFILE%\Desktop\DebloatLog_[DateTime].txt
After running the script and restarting:
- Verify Windows Security is functioning
- Check Windows Update is working
- Review the log file for any warnings