Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Plínio Larrubia e50d3beab8
`refactor`: Purge set-script-policy lib
- Only set execution policy when creating the Winget scheduled job
- There's no reason to block script usage, at least from my side
- Update FUNDING.yml because i got GitHub Sponsors working 🥳
2 weeks ago
.github `refactor`: Purge set-script-policy lib 2 weeks ago
src `refactor`: Purge set-script-policy lib 2 weeks ago
.gitignore feat: Install Nerd Fonts is isolated in as a new option 2 weeks ago
CONTRIBUTING.md `misc`: fix html identation 2 weeks ago
LICENSE.txt Update how LICENSE is displayed 2 weeks ago
OpenTerminalHere.cmd Updated file to open terminal first, otherwise powershell 2 weeks ago
README.md `refactor`: Purge set-script-policy lib 2 weeks ago
Win10ScriptCLI.ps1 `refactor`: Purge set-script-policy lib 2 weeks ago
Win10ScriptGUI.ps1 `refactor`: Purge set-script-policy lib 2 weeks ago

README.md

PSScriptAnalyzer GitHub issues GitHub Commit rate GitHub last commit (branch) GitHub code size in bytes

Win 10+ Smart Debloat Tools

This Project was adapted from W4RH4WK's Project

📄 Resume

These scripts will Customize, Debloat and Improve Privacy/Performance and System Responsiveness on Windows 10+.

Use on a fresh windows install to note the differences.

⚠️ Disclaimer: You're doing this at your own risk, I am not responsible for any data loss or damage that may occur.

🚀 Download Latest Version

Code located in the main branch is considered stable, the develop branch is the most recent version.

Download Version(s) Supported Edition(s) PowerShell Version

⬇️ Main - Stable

21H2 or Older Home / Pro v5.1+
⬇️ Develop - Newer

🔄 Roll-Back

If something breaks you can rely on:

  1. A restoration point;
  2. The repair-windows.ps1 file or button on Win10ScriptGUI.ps1;
  3. If you want (almost) everything to it's original state, use the Undo Tweaks button on Win10ScriptGUI.ps1.

Usage Requirements

The Win10Script(CLI/GUI).ps1 do not make everything automatically, follow these steps.

  • Extract the .zip file.
  • Open OpenTerminalHere.cmd (For beginners) or the Powershell as admin on it's folder.
  • Enable execution of PowerShell scripts and Unblock PowerShell scripts and modules within this directory (Down below).

GUI Version

  • Copy and Paste this entire line below on Powershell:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"Win10ScriptGUI.ps1"

Script GUI

The Apply Tweaks button is the main one for debloating.

CLI Version (Minimal, good for automation)

  • Copy and Paste this entire line below on Powershell:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"Win10ScriptCLI.ps1"

Scripts can be run individually, pick what you need.

GUI Script Features

Click to expand

System Tweaks

System Debloat Tools

  • Apply Tweaks: Run every Common Tweak scripts;
  • Undo Tweaks: Re-apply some tweaks and [Revert] all possible ones, covering the Scheduled Tasks, Services, Privacy and Performance, Personal and Optional Features tweaks, then try to Reinstall Pre-Installed Apps;
  • Remove Xbox: Wipe Xbox Apps, disable Services related to Xbox and GameBar/GameDVR; (remove-xbox.ps1)
  • Install OneDrive: Tries to re-install the built-in OneDrive; (install-onedrive.ps1)
  • Reinstall Pre-Installed Apps: Rebloat Windows with all the Pre-Installed Apps; (reinstall-pre-installed-apps.ps1)
  • Repair Windows: Try to Completely fix the Windows worst problems via Command Line; (backup-system.ps1 and repair-windows.ps1)
  • Show Debloat Info: Make an overall check-up from disabled and enabled Windows Components (Compare before and after applying tweaks, it's a great difference); (show-debloat-info.ps1)

Customize System Features

Miscellaneous Features

  • Enable/Disable God Mode: Enables or Disables the hidden Desktop folder God Mode;
  • Enable/Disable Take Ownership menu: Enables or Disables the Take Ownership context menu;
  • Enable/Disable Shutdown PC shortcut: Enables or Disables the Shutdown Computer desktop shortcut;

Software Install

  • Install Selected: Install the selected apps by marking the checkbox(es);
  • Uninstall Mode: Default as OFF, clicking this will switch the Install Selected button to Uninstall Selected and uninstall every selected apps (Advice: Blue colored buttons may not be able to uninstall completely and WSL UWP Apps, but WSL Distros will be unregistered);

☑️ Common Script Features

Click to expand
  • Import all necessary Modules before Executing everything; (lib folder)
  • Logs both script versions on C:\Users\Username\AppData\Local\Temp\Win10-SDT-Logs;
  • Make a Restore Point and Backup the Hosts file; (backup-system.ps1)
  • Install Chocolatey/Winget by default; (install-package-managers.ps1)
    • Auto-Update every available software via Winget (12:00/day) and Chocolatey (13:00/day);
    • Find the Scheduled Job on Task Scheduler > "Microsoft\Windows\PowerShell\ScheduledJobs\Chocolatey/Winget Daily Upgrade";
    • Register daily upgrade logs on C:\Users\Username\AppData\Local\Temp\Win10-SDT-Logs and remove old log files;
  • Download AdwCleaner and Run the latest version of for Virus/Adware scan; (silent-debloat-softwares.ps1)
  • Download OOShutUp10 and import all Recommended settings;
  • Disable Telemetry from Scheduled Tasks and Optimize it; (optimize-task-scheduler.ps1)
  • Disable heavy Services, but enable some on SSDs for optimum performance; (optimize-services.ps1)
  • Remove Bloatware UWP Apps that comes with Windows 10+, except from my choice; (remove-bloatware-apps.ps1)
  • Optimize Privacy by disabling more telemetry stuff and changing GPOs; (optimize-privacy.ps1)
  • Optimize Performance by changing away from stock configurations that slowdowns the system; (optimize-performance.ps1)
  • Apply General Personalization tweaks via Registry and Powershell commands; (personal-tweaks.ps1)
  • Help improve the Security of Windows while maintaining performance; (optimize-security.ps1)
  • Remove OneDrive completely from the System, re-install is possible via Win Store; (remove-onedrive.ps1)
  • Disable/Enable Windows Features specially for Gaming/Productivity; (optimize-windows-features.ps1)

Troubleshooting Known Issues

For each issue, expand the issue you're looking for, and Open PowerShell as admin to copy + paste it's content:

Bring back Taskbar Widgets (Windows 11) - See #7
  1. Press Win + R then paste this protocol: ms-windows-store://pdp/?ProductId=9MSSGKG348SP
  2. Then click Get/Install
  3. After this, open the Taskbar Settings and enable the Widgets button again
Fix NVIDIA Control Panel

Only this time (Recommended - Consumes less RAM after boot)

Get-Service "NVDisplay.ContainerLocalSystem" | Set-Service -StartupType Manual -PassThru | Start-Service

Permanently (Keeps the service running along with the system)

Get-Service "NVDisplay.ContainerLocalSystem" | Set-Service -StartupType Automatic -PassThru | Start-Service
Sysprep will hang (Not Tested).

No solution yet, do a Google search

🏅 More Debloat Scripts (Community)

Click to expand

The scripts are designed to run With/Without (GUI/CLI) any user interaction. Modify them beforehand. If you want a more interactive approach check out:

🔧 Tweak Testers

  • All of my friends and people who trusted on me to run the script;
  • yCr-shiddy - Helped giving more ideas and fixes;

🤍 Credits

  • Special thanks to the LowSpecGamer, he is the reason i've adapted this script.
  • W4RH4WK (For his project ^^);

📚 Used code references

📝 License

Licensed under the MIT license.

MalwareBytes AdwCleaner and O&O ShutUp10++ have their own licenses.