This Project was adapted from W4RH4WK's Project
These scripts will Customize, Debloat and Improve Privacy/Performance and System Responsiveness on Windows 10+. This has a collection of scripts to tweak the system per category, using different functions to adjust the system settings and make Windows great again! You can also install your favorite softwares through the GUI with just one click after being selected.
Use on a fresh windows install to note the differences.
Code located in the main
branch is considered stable, the develop
branch contains the most recent features.
If something breaks you can rely on:
- If you want (almost) everything to it's original state, use the
Undo Tweaks
button onWin10ScriptGUI.ps1
. - A restoration point done by the script itself;
- The
Repair Windows
button onWin10ScriptGUI.ps1
;
The Win10Script(CLI/GUI).ps1
do not make everything automatically, so follow these steps.
- Extract the
.zip
file to another folder. - Run
OpenTerminalHere.cmd
(try as admin if nothing happens at all). - Enable execution of PowerShell scripts and Unblock PowerShell scripts and modules within this directory (Down below).
- Copy and Paste this entire line below on PowerShell:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\"Win10ScriptGUI.ps1"
The Apply Tweaks
button is the main one for debloating.
- 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.
Click to expand
This part is also valid to the Apply Tweaks button on the GUI.
- Import all necessary modules before executing everything;
- Logs both script runs on
C:\Users\<<USERNAME>>\AppData\Local\Temp\Win-DT-Logs
; - Make a Restore Point and Backup the Hosts file;
- Install Winget/Chocolatey package managers by default;
- Creates a new Scheduled Task to daily upgrade all available softwares via Winget at 12:00 and Chocolatey at 13:00;
- Find the Scheduled Task on
Task Scheduler > Microsoft > Windows > PowerShell > ScheduledJobs > Chocolatey/Winget Daily Upgrade
; - Register daily upgrade logs on
C:\Users\<<USERNAME>>\AppData\Local\Temp\Win-DT-Logs
and remove old log files;
- Download AdwCleaner and Run the latest version for Virus/Adware scan and from OOShutUp10 and import all Recommended settings from a file;
- Disable non-essential Telemetry from Scheduled Tasks and Optimize it;
- Disable heavy Services, but enable some on SSDs for optimum performance;
- Remove Bloatware UWP Apps that comes with Windows 10+, except from my choice;
- Optimize Privacy by disabling more telemetry parts and changing GPOs, all through changing registry keys;
- Optimize Performance by changing away from default settings that slowdowns the system, utilizing PowerShell commands and changing registries to disable features;
- Apply General Personalization tweaks via Registry and PowerShell commands;
- Help improve the Security of Windows while maintaining performance;
- Disable obsolete Windows optional features and enable some that might help;
Click to expand
Apply Tweaks
: Run every Common Tweak scripts (Go To βοΈ Common Script Features section);Undo Tweaks
: Re-apply some tweaks and Revert all possible ones, covering theScheduled Tasks
,Services
,Privacy and Performance
,Personal
andOptional Features
tweaks, then try toReinstall Pre-Installed Apps
;Remove OneDrive
: completely removes OneDrive from the System, re-install is possible via Win Store;Remove Xbox
: Wipe Xbox Apps, disable Services related to Xbox and GameBar/GameDVR;Install OneDrive
: Tries to re-install the built-in OneDrive;
Install System Apps (Can be found here)
This section contains options to restore the system apps, by downloading them from the MS Store (mostly) and doing Stock configurations (for some Apps).
Get H.265 video codec
: Get the missing HEVC support to run H.265 videos through MS Store, it's a must have that didn't came with (Free and DIY).Dolby Audio
;OneDrive
;Paint + Paint 3D
;Sound Recorder
;Taskbar Widgets
;Windows Media Player (UWP)
;Xbox
: Re-enable Xbox related functionalities and reinstall the Xbox Apps available on MS Store.
This section contains tools to solve some Windows problems and get info about how much debloated the system is.
Reinstall Pre-Installed Apps
: Rebloat Windows with all the Pre-Installed Apps;Repair Windows
: Try to Completely fix the Windows worst problems via Command Line;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);
Customize System Features (Can be found here)
Enable/Disable Dark Theme
: Apply Dark Theme or Light Theme on Windows;Enable/Disable Activity History
: Manages the Activity History;Enable/Disable Background Apps
: Manages ALL the Background Apps;Enable/Disable Clipboard History
: Manages the Clipboard History;Enable/Disable Cortana
: Manages the Cortana;Enable/Disable Old Volume Control
: Manages the Old Volume Control (Win 7/8.1);Enable/Disable Photo Viewer
: Enables or Disables the old Photo Viewer (Win 7/8.1);Enable/Disable Search App for Unknown Ext.
: When running a unknown extension file, be able to search through MS Store for an App that can open it.Enable/Disable Telemetry
: Manages the Windows Telemetry Level;Enable/Disable WSearch Service
: Manages the Windows Search Service;Enable/Disable Xbox GameBar DVR
: Manages the Xbox GameBar DVR (In-Game), that can record clips from games;
Optional Features (Can be found here)
This section can manually adjust Optional Features
from the system, working as a ON/OFF toggle.
Miscellaneous Features (Can be found here)
Enable/Disable Encrypted DNS
: Sets the DNS Client Servers to Cloudflare's and Google's (ipv4 and ipv6), and enables DNS Over HTTPS on Windows 11.Enable/Disable God Mode
: Manages the hidden Desktop folder called "God Mode";Enable/Disable Take Ownership menu
: Enables or Disables the Take Ownership context menu;Enable/Disable Shutdown PC shortcut
: Manages the Shutdown Computer desktop shortcut;
Upgrade All Softwares
: Upgrades all Softwares installed on your machine installed through Winget and Chocolatey.- WSL will only update itself, not the distros installed.
Install Selected
: Install the selected apps by marking the checkbox(es);Uninstall Mode
: Default as OFF, clicking this will switch theInstall Selected
button toUninstall 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);
For each issue, expand the issue you're looking for, and Open PowerShell as admin to copy + paste it's content:
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
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 then check out:
- win10script and winutil (Recommended) from ChrisTitusTech;
- Windows10Debloater from Sycnex;
- Sophia-Script-for-Windows from farag2;
- Windows-Optimize-Harden-Debloat and Windows-Optimize-Debloat from SimeonOnSecurity;
- All of my friends and people who trusted on me to run the script;
- yCr-shiddy - Helped giving more ideas and fixes;
- Special thanks to LowSpecGamer, he is the reason i've adapted this script.
- Special thanks to Fabio Akita, for believing in this project and making this script famous π€.
- W4RH4WK - For his project ^^
- Adamx's - by this video (and script);
- Baboo's - by this video (and commands);
- ChrisTitusTech - by having taught how to mess with PowerShell in this Stream (and his open-source debloat script);
- Daniel Persson - by this video (and script explanation);
- matthewjberger - by this script.
Found a bug or want a new feature? Please check out the CONTRIBUTING.md file.
Licensed under the MIT license.
MalwareBytes AdwCleaner and O&O ShutUp10++ have their own licenses.