{"id":15021179,"url":"https://github.com/ledragox/win-debloat-tools","last_synced_at":"2025-05-14T07:08:24.524Z","repository":{"id":37397636,"uuid":"290505309","full_name":"LeDragoX/Win-Debloat-Tools","owner":"LeDragoX","description":"Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.","archived":false,"fork":false,"pushed_at":"2024-09-09T13:32:15.000Z","size":49180,"stargazers_count":5334,"open_issues_count":15,"forks_count":266,"subscribers_count":70,"default_branch":"main","last_synced_at":"2024-10-29T14:55:55.990Z","etag":null,"topics":["bloatware-removal","chocolatey","gui-application","powershell","powershell-scripts","software-installation","tweaks","virus-scanning","windows","windows-10-debloat","windows-11-debloat","windows-debloat","winget"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeDragoX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["LeDragoX"]}},"created_at":"2020-08-26T13:32:48.000Z","updated_at":"2024-10-29T14:17:23.000Z","dependencies_parsed_at":"2024-04-09T19:57:02.556Z","dependency_job_id":"7388e243-026b-425a-8af9-b41747e1e8fd","html_url":"https://github.com/LeDragoX/Win-Debloat-Tools","commit_stats":{"total_commits":1386,"total_committers":61,"mean_commits":"22.721311475409838","dds":"0.21933621933621938","last_synced_commit":"c5405a9dc51f7a7d429e9da357886c953a83ac7d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeDragoX%2FWin-Debloat-Tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeDragoX%2FWin-Debloat-Tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeDragoX%2FWin-Debloat-Tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeDragoX%2FWin-Debloat-Tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeDragoX","download_url":"https://codeload.github.com/LeDragoX/Win-Debloat-Tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092775,"owners_count":22013290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bloatware-removal","chocolatey","gui-application","powershell","powershell-scripts","software-installation","tweaks","virus-scanning","windows","windows-10-debloat","windows-11-debloat","windows-debloat","winget"],"created_at":"2024-09-24T19:56:14.356Z","updated_at":"2025-05-14T07:08:24.500Z","avatar_url":"https://github.com/LeDragoX.png","language":"PowerShell","funding_links":["https://github.com/sponsors/LeDragoX"],"categories":[],"sub_categories":[],"readme":"\u003c!--\nSelf reminder: If i'm willing to change the repository name (again...why???)\nI need to change these files:\n- src\\lib\\start-logging.psm1\n- src\\lib\\title-templates.psm1 (LOGO)\n- CONTRIBUTING.md\n- README.md\n- WinDebloatTools.ps1 (Window Title)\n--\u003e\n\n\u003ch2 align=\"center\"\u003e\n\u003cimg src=\"src/assets/script-logo.png\" style=\"vertical-align: bottom\" width=\"90%\"\u003e\n\n[![PSScriptAnalyzer](https://github.com/LeDragoX/Win-Debloat-Tools/actions/workflows/powershell.yaml/badge.svg?style=flat)](https://github.com/LeDragoX/Win-Debloat-Tools/actions/workflows/powershell.yaml)\n![GitHub issues](https://img.shields.io/github/issues/LeDragoX/Win-Debloat-Tools?label=Issues)\n![GitHub license](https://img.shields.io/github/license/LeDragoX/Win-Debloat-Tools?color=blue\u0026label=License)\n[![Commit rate](https://img.shields.io/github/commit-activity/m/LeDragoX/Win-Debloat-Tools?label=Commit%20rate)](https://github.com/LeDragoX/Win-Debloat-Tools/commits/master)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/LeDragoX/Win-Debloat-Tools/main?label=Last%20commit)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/LeDragoX/Win-Debloat-Tools?label=Code%20size)\n\n\u003ci\u003e\n  This Project was adapted from \u003ca href=\"https://github.com/W4RH4WK/Debloat-Windows-10\"\u003eW4RH4WK's Project\u003c/a\u003e\n\u003c/i\u003e\n\u003c/h2\u003e\n\n***Re-imagining Windows like a minimal OS install, already debloated with minimal impact for most functionality.***\n\n\u003e [!WARNING]\n\u003e **DISCLAIMER:** *You're doing this at your own risk, I am not responsible for any data loss or damage that may occur. It's not guaranteed that every feature removed from the system can be easily restored.*\n\n## 🚀 Download Latest Version\n\nCode located in the `main` branch is considered bleeding-edge, but big features/reworks will be implemented in a separate branch.\n\n\u003e [!IMPORTANT]\n\u003e *Use on a fresh Windows install to notice the differences. Using an admin account is recommended to avoid any compatibility issues.*\n\n\u003cdiv align=\"center\"\u003e\n  \u003ctable\u003e\n    \u003cthead align=\"center\"\u003e\n      \u003ctr\u003e\n        \u003cth\u003eBranch to Download\u003c/th\u003e\n        \u003cth\u003eVersion(s) Supported\u003c/th\u003e\n        \u003cth\u003eEdition(s)\u003c/th\u003e\n        \u003cth\u003eArchitecture\u003c/th\u003e\n        \u003cth\u003ePowerShell Version\u003c/th\u003e\n      \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody align=\"center\"\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ch4\u003e\u003ca href=\"https://github.com/LeDragoX/Win-Debloat-Tools/archive/main.zip\"\u003e⬇️ Main\u003c/a\u003e\u003c/h4\u003e(Current)\n        \u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003e23H2 or Older\u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003eHome / Pro\u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003e\n          x86/x64 ONLY\u003cbr\u003e\n          ARM/ARM64 will break your installation (\u003ca href=\"https://github.com/LeDragoX/Win-Debloat-Tools/issues/97\"\u003e#97\u003c/a\u003e)\n        \u003c/td\u003e\n        \u003ctd rowspan=\"2\"\u003e\u003cimg width=20px src=\"src/assets/powershell-icon.png\" style=\"vertical-align: bottom\" /\u003e v5.1+\u003c/td\u003e\n      \u003c/tr\u003e\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n\n## ✨ Usage\n\n**To run a variant of the script, follow these steps:**\n\n- Extract the **entire** `.zip` file to another folder.\n- Run `OpenTerminalHere.cmd` (try to `run as admin` if nothing happens at all).\n- Copy and Paste one of the lines below on your **Terminal** to unblock the scripts and execute it:\n\n### GUI Version\n\n```ps1\nSet-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\\\"WinDebloatTools.ps1\"\n```\n\n\u003cdiv align=\"center\"\u003e\n\n![Script GUI](./src/assets/script-gui.png)\n*The `Apply Tweaks` button is the main one for debloating.*\n\n\u003c/div\u003e\n\n### **CLI Version** (Straight to debloat)\n\n```ps1\nSet-ExecutionPolicy Unrestricted -Scope CurrentUser -Force; ls -Recurse *.ps*1 | Unblock-File; .\\\"WinDebloatTools.ps1\" 'CLI'\n```\n\n**[Scripts](./src/scripts) can be run individually, pick what you need.**\n\n## 🔄️ Roll-Back\n\n**If something breaks you can rely on:**\n\n1. If you want **(almost)** everything to it's original state, use the `Undo Tweaks` button on [`WinDebloatTools.ps1`](./WinDebloatTools.ps1).\n2. A restoration point done by the script itself;\n3. The `Repair Windows` button on [`WinDebloatTools.ps1`](./WinDebloatTools.ps1);\n\n## ☑️ Common Script Features\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick to expand\u003c/summary\u003e\n\n**This part is also valid to the *Apply Tweaks* button on the GUI.**\n\n- Import all necessary *modules* before executing everything ([Source](./src/lib/));\n- Logs both script runs on `C:\\Users\\\u003c\u003cUSERNAME\u003e\u003e\\AppData\\Local\\Temp\\Win-DT-Logs`;\n- Make a Restore Point and Backup the Hosts file ([Source](./src/scripts/Backup-System.ps1));\n- Download AdwCleaner and Run the latest version for *Virus/Adware* scan and from OOShutUp10 and import all Recommended settings from a file ([Source](./src/scripts/Invoke-DebloatSoftware.ps1));\n- Disable *non-essential* **Telemetry** from **Scheduled Tasks** and Optimize it ([Source](./src/scripts/Optimize-TaskScheduler.ps1));\n- Disable *heavy* **Services**, but enable some on SSDs for optimum performance ([Source](./src/scripts/Optimize-ServicesRunning.ps1));\n- Remove some of the legacy system components called as \"**Capabilities**\", except the most popular ones ([Source](./src/scripts/Remove-CapabilitiesList.ps1));\n- Remove **Bloatware UWP Apps** that comes with Windows 10+, except from my choice ([Source](./src/scripts/Remove-BloatwareAppsList.ps1));\n- Optimize **Privacy** by disabling more **telemetry** parts and changing **GPOs**, all through changing **registry keys** ([Source](./src/scripts/Optimize-Privacy.ps1));\n- Optimize **Performance** by changing away from default settings that slowdowns the system, utilizing **PowerShell commands** and **changing registries** to disable features ([Source](./src/scripts/Optimize-Performance.ps1));\n- Apply **Personalization** tweaks on **UI** and **System Settings** via **Registry** and **PowerShell** commands ([Source](./src/scripts/Register-PersonalTweaksList.ps1));\n- Help improve the **Security** of Windows while maintaining performance ([Source](./src/scripts/Optimize-Security.ps1));\n- Disable **obsolete** Windows **optional features** and enable some that might help ([Source](./src/scripts/Optimize-WindowsFeaturesList.ps1));\n\n\u003c/details\u003e\n\n## ✅ GUI Script Features\n\n\u003cdetails\u003e\n  \u003csummary\u003eClick to expand\u003c/summary\u003e\n\n### System Tweaks\n\n#### Customize System Features ([Can be found here](src/utils/Individual-Tweaks.psm1))\n\n- `Enable/Disable Dark Theme`: Apply *Dark Theme* or *Light Theme* on Windows;\n- `Enable/Disable Activity History`: Manages the **Activity History** setting;\n- `Enable/Disable Background Apps`: Manages *ALL* the **Background Apps** settings;\n- `Enable/Disable Clipboard History`: Manages the **Clipboard History** setting, that keeps a history from your clipboard pressing `Windows + V` key;\n- `Enable/Disable Clipboard Sync Across Devices`: Manages the **Clipboard Sync Across Devices** setting, which allows to use the same clipboard for multiple devices (must be using a MS account);\n- `Enable/Disable Cortana`: Manages the **Cortana** setting;\n- `Enable/Disable Hibernate`: Manages the **Hibernate** setting;\n- `Enable/Disable Legacy Context Menu`: Bring back the Windows 10 **context menu** from right-clicking or default on Windows 11;\n- `Enable/Disable Location Tracking`: Allow or block **location sensors and trackers** on Windows;\n- `Enable/Disable News And Interest`: Show or hide the **temperature and climate** on the taskbar;\n- `Enable/Disable Old Volume Control`: Manages the **Old Volume Control (Win 7/8.1)** setting;\n- `Enable/Disable Online Speech Recognition`: Manages the **Online Speech Recognition** setting, by pressing the keys `Windows + H` you can speak through your mic, then use it to type text using your voice;\n- `Enable/Disable Phone Link`: Manages the **Phone Link** setting, which can link your Android/iPhone devices notifications to Windows;\n- `Enable/Disable Photo Viewer`: [*Enables*](./src/utils/enable-photo-viewer.reg) or [*Disables*](src/utils/disable-photo-viewer.reg) the old **Photo Viewer (Win 7/8.1)**;\n- `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.\n- `Enable/Disable Telemetry`: Manages the **Windows Telemetry Level** setting;\n- `Enable/Disable WSearch Service`: Manages the **Windows Search Service** setting;\n- `Enable/Disable Windows Spotlight`: Manages the spotlight setting in personalization settings, giving a new desktop and lockscreen wallpaper daily;\n- `Enable/Disable Xbox Game Bar/DVR/Mode`: Manages the **Xbox Game Bar/DVR/Mode** setting, that can open Game Bar anywhere, record clips from games and change Game Mode;\n\n#### System Debloat Tools\n\n- `Apply Tweaks`: Run every Common Tweak scripts ([Go To **☑️ Common Script Features** section](#%EF%B8%8F-common-script-features));\n- `Undo Tweaks`: Re-apply some tweaks and *Revert* all possible ones, covering the, `ShutUp10 settings`, `Scheduled Tasks`, `Services`, `Privacy and Performance`, `Personal` and `Optional Features` tweaks, then try to `Reinstall Pre-Installed Apps`;\n- [`Remove Microsoft Edge`](./src/scripts/Remove-MSEdge.ps1): uninstalls **Microsoft Edge**, disables Scheduled Tasks and Services related to Edge, then remove the remaining files, **Edge Web View** files will remain untouched, but apps which depends on **WebView2** will not install unless you install Microsoft Edge;\n- [`Remove OneDrive`](./src/scripts/Remove-OneDrive.ps1): completely removes OneDrive from the System, re-install is possible via Win Store;\n- [`Remove Xbox`](./src/scripts/Remove-Xbox.ps1): wipe Xbox Apps, disable Services related to Xbox and GameBar/GameDVR;\n\n#### Install System Apps ([Can be found here](src/utils/Install-Individual-System-Apps.psm1))\n\n*This section contains options to restore the system apps, by downloading them from the **MS Store** (mostly) and doing **Stock configurations** (for some Apps).*\n\n\u003e The Xbox button uses a script to restore functionalities and reinstall the Xbox Apps available on MS Store.\n\n#### Other Tools\n\n*This section contains tools to solve some Windows problems and get info about how much debloated the system is.*\n\n- [`Randomize System Color`](./src/scripts/other-scripts/New-SystemColor.ps1): Changes the Windows color pallette to a random generated hex color;\n- [`Reinstall Pre-Installed Apps`](./src/scripts/Install-DefaultAppsList.ps1): Rebloat Windows with all the Pre-Installed Apps;\n- [`Repair Windows`](./src/scripts/Repair-WindowsSystem.ps1): Try to Completely fix the Windows worst problems via Command Line;\n- [`Show Debloat Info`](./src/scripts/other-scripts/Show-DebloatInfo.ps1): Make an overall check-up from disabled and enabled Windows Components (Compare before and after applying tweaks, it's a great difference);\n\n#### Windows Update ([Can be found here](src/utils/Individual-Tweaks.psm1))\n\n- `Enable/Disable Automatic Windows Update`: Set Windows updates to automatic or manual;\n\n#### Optional Features/Task Scheduler/Services/Windows Capabilities ([Can be found here](src/utils/Individual-Tweaks.psm1))\n\n*These sections can manually adjust **Features** from the system, working as a ON/OFF toggle.*\n\n#### Miscellaneous Features ([Can be found here](src/utils/Individual-Tweaks.psm1))\n\n- `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*.\n- `Enable/Disable God Mode`: Manages the hidden Desktop folder called \"**God Mode**\";\n- `Enable/Disable Mouse Acceleration`: Manages the **Enhance Pointer Precision** setting from mouse settings;\n- `Enable/Disable Mouse Natural Scroll`: Sets the mac-like mouse scrolling behavior, basically reverts mouse scroll direction;\n- `Enable/Disable Take Ownership menu`: [*Enables*](./src/utils/enable-take-ownership-context-menu.reg) or [*Disables*](src/utils/disable-take-ownership-context-menu.reg) the **Take Ownership context menu**;\n- `Enable/Disable Shutdown PC shortcut`: Manages the **Shutdown Computer desktop shortcut**;\n\n### Software Install\n\n- [Install *Winget/Chocolatey* package managers](./src/lib/package-managers/);\n\n  - Be able to install the listed software in this script! Even from System apps.\n  - **Importante Note:** When proceeding to install a new app, the script will automatically install the required package manager for that operation.\n\n- [**Create** or **Remove** a Daily Upgrade Task for *Winget/Chocolatey* packages](./src/lib/package-managers/);\n\n  - Creates a new Scheduled Job to daily upgrade all available softwares via *Winget* at **12:00** and *Chocolatey* at **13:00**;\n  - Register daily upgrade logs on `C:\\Users\\\u003c\u003cUSERNAME\u003e\u003e\\AppData\\Local\\Temp\\Win-DT-Logs` and remove old log files;\n\n- `Remove All Chocolatey Packages`: List all packages from Chocolatey which are installed and remove everything at once;\n\n- `Upgrade All Softwares`: Upgrades all Softwares installed on your machine installed through *Winget* and *Chocolatey*.\n  - WSL will only update itself, not the distros installed.\n- `Install Selected`: Install the selected apps by marking the checkbox(es);\n- `Uninstall Mode`: Default as OFF, clicking this will switch the `Install Selected` button to `Uninstall Selected` and uninstall every selected apps (**Advice:** differently colored buttons may not be able to uninstall completely and WSL UWP Apps, but WSL Distros will be unregistered);\n\n\u003c/details\u003e\n\n## ➕ Contributing\n\nFIRST of all, if have any *questions* or *concerns* about the project, please refer to the [DISCUSSION](https://github.com/LeDragoX/Win-Debloat-Tools/discussions/new/choose) page, not the **ISSUES**, this helps keeping the project organized, thanks!\nFound a *bug* or want a *new feature*? You can open a new `Issue` [here](https://github.com/LeDragoX/Win-Debloat-Tools/issues/new/choose).\nWanting to add *improvements* or *fixes*? Please check out the [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n## 🤍 Credits\n\n- Special thanks to [LowSpecGamer](https://youtu.be/IU5F01oOzQQ?t=324), he is the reason i've adapted this script.\n- Special thanks to [Fabio Akita](https://youtu.be/sjrW74Hx5Po?t=318), for believing in this project and making this script famous 🤍.\n- [W4RH4WK](https://github.com/W4RH4WK) - For his project ^^\n- [Tester] All of *my friends and people* who trusted on me to run the script;\n- [Tester] [yCr-shiddy](https://github.com/yCr-shiddy) - Helped giving more ideas and fixes;\n- [Code] [Adamx's](https://www.youtube.com/channel/UCjidjWX76LR1g5yx18NSrLA) - by [*this video*](https://youtu.be/hQSkPmZRCjc) (and script);\n- [Code] [Baboo's](https://www.youtube.com/user/baboo) - by [*this video*](https://youtu.be/qWESrvP_uU8) (and commands);\n- [Code] [ChrisTitusTech](https://www.youtube.com/channel/UCg6gPGh8HU2U01vaFCAsvmQ) - by having taught how to mess with *PowerShell* in [this Stream](https://youtu.be/ER27pGt5wH0) (and his *open-source* debloat script);\n- [Code] [Daniel Persson](https://www.youtube.com/channel/UCnG-TN23lswO6QbvWhMtxpA) - by [*this video*](https://youtu.be/EfrT_Bvgles) (and script explanation);\n- [Code] [matthewjberger](https://gist.github.com/matthewjberger) - by [*this script*](https://gist.github.com/matthewjberger/2f4295887d6cb5738fa34e597f457b7f).\n\n## 🛣️ Roadmap\n\nList of all changes made on the script since the beginning, the file can be accessed [here](ROADMAP.md).\n\n## 🏅 Recommended Alternative\n\nThe scripts are designed to run without any user interaction. Modify them beforehand. If you want a more interactive approach (also more maintained) then check out:\n\n- [winutil](https://github.com/ChrisTitusTech/winutil) from [ChrisTitusTech](https://github.com/ChrisTitusTech);\n\n## 📝 Legal / License\n\n*This project is NOT associated to **MalwareBytes** and **O\u0026O Software GmbH** in any form.*\n**MalwareBytes AdwCleaner** and **O\u0026O ShutUp10++** have their own licenses.\n\nLicensed under the [MIT](LICENSE.txt) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledragox%2Fwin-debloat-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledragox%2Fwin-debloat-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledragox%2Fwin-debloat-tools/lists"}