mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Compare commits
23 Commits
2025.05.19
...
2025.06.12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a170a2db1 | ||
|
|
a6a7232709 | ||
|
|
3f22b8d22d | ||
|
|
1c7c7f734f | ||
|
|
1729831af9 | ||
|
|
a2095b2b60 | ||
|
|
d7c47a587c | ||
|
|
c5702f7096 | ||
|
|
352e6db5a1 | ||
|
|
34addd3425 | ||
|
|
4165f9940d | ||
|
|
8bc12a5a85 | ||
|
|
67d529c22b | ||
|
|
26ebc7d91f | ||
|
|
355ae22da8 | ||
|
|
a3851e3dbb | ||
|
|
0aa146ac3e | ||
|
|
44703765fb | ||
|
|
c324483c7b | ||
|
|
6c4b791d79 | ||
|
|
6eccf15d88 | ||
|
|
df9f00c726 | ||
|
|
1e7d212c10 |
27
.github/ISSUE_TEMPLATE/bug_report.md
vendored
27
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
1. Open '...'
|
|
||||||
2. Select '....'
|
|
||||||
3. Wait for '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
79
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
79
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
name: "🐞 Bug report"
|
||||||
|
description: "Report an issue you encountered"
|
||||||
|
labels: ["bug"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# 🐞 **Bug report**
|
||||||
|
Thanks for taking the time to fill out this bug report! Please provide as much information as possible in your report to help us understand and resolve the issue.
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: checklist
|
||||||
|
attributes:
|
||||||
|
label: Checklist
|
||||||
|
description: Please confirm the following before posting your issue.
|
||||||
|
options:
|
||||||
|
- label: I have searched for existing issues/discussions and didn't find any similar ones.
|
||||||
|
required: true
|
||||||
|
- label: I haven't used any other scripts, tools or programs that might have caused this issue.
|
||||||
|
required: false
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: windows_version
|
||||||
|
attributes:
|
||||||
|
label: Windows version
|
||||||
|
description: What version of Windows are you using?
|
||||||
|
placeholder: e.g. Windows 11 24H2 (26100.4202)
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: script_setting
|
||||||
|
attributes:
|
||||||
|
label: Script mode/options
|
||||||
|
description: What mode/options did you use with the script?
|
||||||
|
placeholder: e.g. "Default mode", "Custom mode with options X, Y, Z"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: issue_description
|
||||||
|
attributes:
|
||||||
|
label: Describe the issue
|
||||||
|
description: Provide a clear and detailed description of the issue.
|
||||||
|
placeholder: e.g. "When I ran the script I expected [...], but instead [...]. This caused [...]."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: steps_to_reproduce
|
||||||
|
attributes:
|
||||||
|
label: Steps to reproduce
|
||||||
|
description: How can the behaviour be reproduced? Please provide detailed steps.
|
||||||
|
placeholder: |
|
||||||
|
1. Open '...'
|
||||||
|
2. Select '...'
|
||||||
|
3. Wait for '...'
|
||||||
|
4. Etc.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: error_logs
|
||||||
|
attributes:
|
||||||
|
label: Error output
|
||||||
|
description: "Include any relevant logs or error messages. Logs can be found in `%temp%/Win11Debloat` or the root folder of the script. Please keep in mind that logs may contain personal information such as usernames and the name of your PC, so review them before submitting."
|
||||||
|
placeholder: Include any relevant logs or error messages.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: additional_context
|
||||||
|
attributes:
|
||||||
|
label: Additional context
|
||||||
|
description: Add any other context about the problem here.
|
||||||
|
placeholder: e.g. Screenshots, links to related discussions, etc.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: Open a discussion
|
||||||
|
url: https://github.com/Raphire/Win11Debloat/discussions
|
||||||
|
about: Discuss anything that is not a bug report or feature request
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
46
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
46
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: "💡 Feature request"
|
||||||
|
description: "Suggest a new feature or improvement"
|
||||||
|
labels: ["enhancement"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# 💡 **Feature request**
|
||||||
|
Thanks for taking the time to suggest a feature for Win11Debloat! Please include as much detail as possible to help us understand and evaluate your suggestion.
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: checklist
|
||||||
|
attributes:
|
||||||
|
label: Checklist
|
||||||
|
description: Please confirm the following before posting your issue.
|
||||||
|
options:
|
||||||
|
- label: I have searched for existing issues/discussions and didn't find any similar ones.
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Describe the feature or improvement
|
||||||
|
description: Provide a clear and concise description of your suggested feature or improvement. Explain why you think this feature is needed and how it would benefit users.
|
||||||
|
placeholder: Describe the feature or improvement.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: examples
|
||||||
|
attributes:
|
||||||
|
label: Examples
|
||||||
|
description: Provide examples of how the feature could work or be implemented.
|
||||||
|
placeholder: e.g. Code snippets, mockups, or links to other implementations of similar features.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: additional_context
|
||||||
|
attributes:
|
||||||
|
label: Additional context
|
||||||
|
description: Add any other context or screenshots about the feature request here.
|
||||||
|
placeholder: e.g. Screenshots, links to related discussions, etc.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
28
Appslist.txt
28
Appslist.txt
@@ -101,42 +101,34 @@ XING
|
|||||||
#Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search)
|
#Microsoft.BingSearch # Web Search from Microsoft Bing (Integrates into Windows Search)
|
||||||
#Microsoft.Copilot # New Microsoft Copilot app
|
#Microsoft.Copilot # New Microsoft Copilot app
|
||||||
#Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area)
|
#Microsoft.Edge # Edge browser (Can only be uninstalled in European Economic Area)
|
||||||
|
#Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games
|
||||||
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters
|
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters
|
||||||
#Microsoft.MSPaint # Paint 3D
|
#Microsoft.MSPaint # Paint 3D
|
||||||
#Microsoft.OneDrive # OneDrive consumer
|
#Microsoft.OneDrive # OneDrive consumer
|
||||||
|
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
|
||||||
#Microsoft.Paint # Classic Paint
|
#Microsoft.Paint # Classic Paint
|
||||||
|
#Microsoft.People # Required for & included with Mail & Calendar
|
||||||
|
#Microsoft.PowerAutomateDesktop
|
||||||
|
#Microsoft.RemoteDesktop
|
||||||
#Microsoft.ScreenSketch # Snipping Tool
|
#Microsoft.ScreenSketch # Snipping Tool
|
||||||
|
#Microsoft.StartExperiencesApp # This app powers Windows Widgets My Feed
|
||||||
#Microsoft.Whiteboard # Only preinstalled on devices with touchscreen and/or pen support
|
#Microsoft.Whiteboard # Only preinstalled on devices with touchscreen and/or pen support
|
||||||
|
#Microsoft.Windows.DevHome
|
||||||
#Microsoft.Windows.Photos
|
#Microsoft.Windows.Photos
|
||||||
#Microsoft.WindowsCalculator
|
#Microsoft.WindowsCalculator
|
||||||
#Microsoft.WindowsCamera
|
#Microsoft.WindowsCamera
|
||||||
|
#Microsoft.windowscommunicationsapps # Mail & Calendar
|
||||||
#Microsoft.WindowsNotepad
|
#Microsoft.WindowsNotepad
|
||||||
#Microsoft.WindowsStore # Microsoft Store, WARNING: This app cannot be reinstalled!
|
#Microsoft.WindowsStore # Microsoft Store, WARNING: This app cannot be reinstalled!
|
||||||
#Microsoft.WindowsTerminal # New default terminal app in windows 11
|
#Microsoft.WindowsTerminal # New default terminal app in windows 11
|
||||||
#Microsoft.Xbox.TCUI # UI framework, seems to be required for MS store, photos and certain games
|
#Microsoft.Xbox.TCUI # UI framework, seems to be required for MS store, photos and certain games
|
||||||
|
#Microsoft.XboxGameOverlay # Game overlay, required/useful for some games
|
||||||
|
#Microsoft.XboxGamingOverlay # Game overlay, required/useful for some games
|
||||||
#Microsoft.XboxIdentityProvider # Xbox sign-in framework, required for some games
|
#Microsoft.XboxIdentityProvider # Xbox sign-in framework, required for some games
|
||||||
#Microsoft.XboxSpeechToTextOverlay # Might be required for some games, WARNING: This app cannot be reinstalled!
|
#Microsoft.XboxSpeechToTextOverlay # Might be required for some games, WARNING: This app cannot be reinstalled!
|
||||||
#Microsoft.YourPhone # Phone link
|
#Microsoft.YourPhone # Phone link
|
||||||
#Microsoft.ZuneMusic # Modern Media Player
|
#Microsoft.ZuneMusic # Modern Media Player
|
||||||
#MicrosoftWindows.CrossDevice # Phone integration within File Explorer, Camera and more
|
#MicrosoftWindows.CrossDevice # Phone integration within File Explorer, Camera and more
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------------------------------------------------- #
|
|
||||||
# The apps below this line will NOT be uninstalled by default, unless selected during custom mode app selection #
|
|
||||||
# or when launching the script with the specific parameters found in the README.md. Remove the # character in #
|
|
||||||
# front of any app you want to UNINSTALL by default. #
|
|
||||||
# --------------------------------------------------------------------------------------------------------------- #
|
|
||||||
#Microsoft.GamingApp # Modern Xbox Gaming App, required for installing some PC games
|
|
||||||
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
|
|
||||||
#Microsoft.People # Required for & included with Mail & Calendar
|
|
||||||
#Microsoft.PowerAutomateDesktop
|
|
||||||
#Microsoft.RemoteDesktop
|
|
||||||
#Microsoft.Windows.DevHome
|
|
||||||
#Microsoft.windowscommunicationsapps # Mail & Calendar
|
|
||||||
#Microsoft.XboxGameOverlay # Game overlay, required/useful for some games
|
|
||||||
#Microsoft.XboxGamingOverlay # Game overlay, required/useful for some games
|
|
||||||
#AD2F1837.HPAIExperienceCenter
|
#AD2F1837.HPAIExperienceCenter
|
||||||
#AD2F1837.HPConnectedMusic
|
#AD2F1837.HPConnectedMusic
|
||||||
#AD2F1837.HPConnectedPhotopoweredbySnapfish
|
#AD2F1837.HPConnectedPhotopoweredbySnapfish
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
Win11Debloat will make the following changes:
|
Win11Debloat will make the following changes:
|
||||||
- Remove the default selection of apps, the list can be found in the 'Appslist.txt' file.
|
- Remove the default selection of apps, the list can be found in the 'Appslist.txt' file.
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable & remove Bing search & Cortana in Windows search.
|
|
||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
||||||
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
||||||
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable Microsoft Copilot. (Windows 11 build 22621+)
|
- Disable Microsoft Copilot. (Windows 11 build 22621+)
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
|
||||||
- Hide the 3D objects folder in Windows Explorer. (Windows 10 only)
|
- Hide the 3D objects folder in Windows Explorer. (Windows 10 only)
|
||||||
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
Win11Debloat is a simple, easy to use and lightweight PowerShell script that can remove
|
Win11Debloat is a lightweight and easy to use PowerShell script that allows you to quickly
|
||||||
pre-installed Windows bloatware apps, disable telemetry and declutter the experience by
|
declutter and improve your Windows experience. It can remove pre-installed bloatware apps,
|
||||||
disabling or removing intrusive interface elements, ads and more. No need to go through
|
disable telemetry, remove intrusive interface elements and much more.
|
||||||
all the settings yourself, or remove apps one by one.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
All Features
|
All Features
|
||||||
@@ -16,10 +15,18 @@ Telemetry, Tracking & Suggested Content
|
|||||||
- Disable the 'Windows Spotlight' desktop background option.
|
- Disable the 'Windows Spotlight' desktop background option.
|
||||||
|
|
||||||
Bing, Copilot & More
|
Bing, Copilot & More
|
||||||
- Disable & remove Bing web search & Cortana from Windows search.
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable & remove Microsoft Copilot. (W11 only)
|
- Disable & remove Microsoft Copilot. (W11 only)
|
||||||
- Disable Windows Recall snapshots. (W11 only)
|
- Disable Windows Recall snapshots. (W11 only)
|
||||||
|
|
||||||
|
Personalisation
|
||||||
|
- Enable dark mode for system and apps.
|
||||||
|
- Disable transparency, animations and visual effects.
|
||||||
|
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
|
||||||
|
- Disable the Sticky Keys keyboard shortcut. (W11 only)
|
||||||
|
- Restore the old Windows 10 style context menu. (W11 only)
|
||||||
|
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
||||||
|
|
||||||
File Explorer
|
File Explorer
|
||||||
- Change the default location that File Explorer opens to.
|
- Change the default location that File Explorer opens to.
|
||||||
- Show hidden files, folders & drives.
|
- Show hidden files, folders & drives.
|
||||||
@@ -28,41 +35,38 @@ File Explorer
|
|||||||
- Hide the 3D objects, music or OneDrive folder from the File Explorer sidepanel. (W10 only)
|
- Hide the 3D objects, music or OneDrive folder from the File Explorer sidepanel. (W10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer sidepanel.
|
- Hide duplicate removable drive entries from the File Explorer sidepanel.
|
||||||
|
|
||||||
Taskbar & Start
|
Taskbar
|
||||||
- Align taskbar icons to the left. (W11 only)
|
- Align taskbar icons to the left. (W11 only)
|
||||||
- Hide or change the search icon/box on the taskbar. (W11 only)
|
- Hide or change the search icon/box on the taskbar. (W11 only)
|
||||||
- Hide the taskview button from the taskbar. (W11 only)
|
- Hide the taskview button from the taskbar. (W11 only)
|
||||||
- Disable the widgets service & hide icon from the taskbar.
|
- Disable the widgets service & hide icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Disable & hide the recommended section in the start menu. (W11 only)
|
|
||||||
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
||||||
|
|
||||||
Context menu
|
Start
|
||||||
- Restore the old Windows 10 style context menu. (W11 only)
|
- Disable & hide the recommended section in the start menu. (W11 only)
|
||||||
- Hide the 'Include in library', 'Give access to' & 'Share' options from the context menu. (W10 only)
|
- Disable the Phone Link mobile devices integration in the start menu. (W11 only)
|
||||||
|
|
||||||
Other
|
Other
|
||||||
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
||||||
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
|
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Disable the Sticky Keys keyboard shortcut. (W11 only)
|
|
||||||
- Option to apply changes to a different user, instead of the currently logged in user.
|
- Option to apply changes to a different user, instead of the currently logged in user.
|
||||||
- Sysprep mode to apply changes to the Windows Default user profile.
|
- Sysprep mode to apply changes to the Windows Default user profile.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Default mode
|
Default mode
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
The default mode applies the changes that are recommended for most users. This includes:
|
The default mode applies the changes that are recommended for most users. This includes:
|
||||||
- Remove the default selection of apps, the list can be found in the 'Appslist.txt' file.
|
- Remove the default selection of apps, the list can be found in the 'Appslist.txt' file.
|
||||||
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable & remove Bing web search & Cortana from Windows search.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
||||||
- Disable tips, tricks, suggestions & ads across Windows.
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
||||||
- Disable Microsoft Copilot. (W11 only)
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
|
- Disable Microsoft Copilot. (Windows 11 build 22621+)
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
- Hide the 3D objects folder in Windows Explorer. (Windows 10 only)
|
||||||
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only)
|
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
Get.ps1
14
Get.ps1
@@ -23,13 +23,19 @@ param (
|
|||||||
[switch]$DisableDesktopSpotlight,
|
[switch]$DisableDesktopSpotlight,
|
||||||
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
||||||
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
|
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
|
||||||
|
[switch]$DisableSettings365Ads,
|
||||||
|
[switch]$DisableSettingsHome,
|
||||||
[switch]$ShowHiddenFolders,
|
[switch]$ShowHiddenFolders,
|
||||||
[switch]$ShowKnownFileExt,
|
[switch]$ShowKnownFileExt,
|
||||||
[switch]$HideDupliDrive,
|
[switch]$HideDupliDrive,
|
||||||
|
[switch]$EnableDarkMode,
|
||||||
|
[switch]$DisableTransparency,
|
||||||
|
[switch]$DisableAnimations,
|
||||||
[switch]$TaskbarAlignLeft,
|
[switch]$TaskbarAlignLeft,
|
||||||
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
||||||
[switch]$HideTaskview,
|
[switch]$HideTaskview,
|
||||||
[switch]$DisableStartRecommended,
|
[switch]$DisableStartRecommended,
|
||||||
|
[switch]$DisableStartPhoneLink,
|
||||||
[switch]$DisableCopilot,
|
[switch]$DisableCopilot,
|
||||||
[switch]$DisableRecall,
|
[switch]$DisableRecall,
|
||||||
[switch]$DisableWidgets, [switch]$HideWidgets,
|
[switch]$DisableWidgets, [switch]$HideWidgets,
|
||||||
@@ -58,7 +64,7 @@ param (
|
|||||||
|
|
||||||
# Show error if current powershell environment does not have LanguageMode set to FullLanguage
|
# Show error if current powershell environment does not have LanguageMode set to FullLanguage
|
||||||
if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
|
if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
|
||||||
Write-Host "Error: Win11Debloat is unable to run on your system. Powershell execution is restricted by security policies" -ForegroundColor Red
|
Write-Host "Error: Win11Debloat is unable to run on your system. PowerShell execution is restricted by security policies" -ForegroundColor Red
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "Press enter to exit..."
|
Write-Output "Press enter to exit..."
|
||||||
Read-Host | Out-Null
|
Read-Host | Out-Null
|
||||||
@@ -73,7 +79,7 @@ Write-Output "------------------------------------------------------------------
|
|||||||
Write-Output "> Downloading Win11Debloat..."
|
Write-Output "> Downloading Win11Debloat..."
|
||||||
|
|
||||||
# Download latest version of Win11Debloat from github as zip archive
|
# Download latest version of Win11Debloat from github as zip archive
|
||||||
Invoke-WebRequest https://github.com/Raphire/Win11Debloat/zipball/master -OutFile "$env:TEMP/win11debloat-temp.zip"
|
Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.06.12 -OutFile "$env:TEMP/win11debloat.zip"
|
||||||
|
|
||||||
# Remove old script folder if it exists, except for CustomAppsList and SavedSettings files
|
# Remove old script folder if it exists, except for CustomAppsList and SavedSettings files
|
||||||
if (Test-Path "$env:TEMP/Win11Debloat") {
|
if (Test-Path "$env:TEMP/Win11Debloat") {
|
||||||
@@ -86,10 +92,10 @@ Write-Output ""
|
|||||||
Write-Output "> Unpacking..."
|
Write-Output "> Unpacking..."
|
||||||
|
|
||||||
# Unzip archive to Win11Debloat folder
|
# Unzip archive to Win11Debloat folder
|
||||||
Expand-Archive "$env:TEMP/win11debloat-temp.zip" "$env:TEMP/Win11Debloat"
|
Expand-Archive "$env:TEMP/win11debloat.zip" "$env:TEMP/Win11Debloat"
|
||||||
|
|
||||||
# Remove archive
|
# Remove archive
|
||||||
Remove-Item "$env:TEMP/win11debloat-temp.zip"
|
Remove-Item "$env:TEMP/win11debloat.zip"
|
||||||
|
|
||||||
# Move files
|
# Move files
|
||||||
Get-ChildItem -Path "$env:TEMP/Win11Debloat/Raphire-Win11Debloat-*" -Recurse | Move-Item -Destination "$env:TEMP/Win11Debloat"
|
Get-ChildItem -Path "$env:TEMP/Win11Debloat/Raphire-Win11Debloat-*" -Recurse | Move-Item -Destination "$env:TEMP/Win11Debloat"
|
||||||
|
|||||||
34
README.md
34
README.md
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
# Win11Debloat
|
# Win11Debloat
|
||||||
|
|
||||||
|
[](https://github.com/Raphire/Win11Debloat/releases/latest)
|
||||||
[](https://github.com/Raphire/Win11Debloat/discussions)
|
[](https://github.com/Raphire/Win11Debloat/discussions)
|
||||||
[](https://github.com/Raphire/Win11Debloat/wiki/)
|
[](https://github.com/Raphire/Win11Debloat/wiki/)
|
||||||
|
|
||||||
@@ -53,7 +54,7 @@ This method supports parameters to customize the behaviour of the script. Please
|
|||||||
<details>
|
<details>
|
||||||
<summary>Manually download & run the script.</summary><br/>
|
<summary>Manually download & run the script.</summary><br/>
|
||||||
|
|
||||||
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/zipball/master), and extract the .ZIP file to your desired location.
|
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location.
|
||||||
2. Navigate to the Win11Debloat folder
|
2. Navigate to the Win11Debloat folder
|
||||||
3. Double click the `Run.bat` file to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below.
|
3. Double click the `Run.bat` file to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below.
|
||||||
4. Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function.
|
4. Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function.
|
||||||
@@ -65,7 +66,7 @@ This method supports parameters to customize the behaviour of the script. Please
|
|||||||
<details>
|
<details>
|
||||||
<summary>Manually download the script & run the script via PowerShell. Recommended for advanced users.</summary><br/>
|
<summary>Manually download the script & run the script via PowerShell. Recommended for advanced users.</summary><br/>
|
||||||
|
|
||||||
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/zipball/master), and extract the .ZIP file to your desired location.
|
1. [Download the latest version of the script](https://github.com/Raphire/Win11Debloat/releases/latest), and extract the .ZIP file to your desired location.
|
||||||
2. Open PowerShell or Terminal as an administrator.
|
2. Open PowerShell or Terminal as an administrator.
|
||||||
3. Temporarily enable PowerShell execution by entering the following command:
|
3. Temporarily enable PowerShell execution by entering the following command:
|
||||||
|
|
||||||
@@ -105,10 +106,19 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
|
|
||||||
#### Bing Web Search, Copilot & More
|
#### Bing Web Search, Copilot & More
|
||||||
|
|
||||||
- Disable & remove Bing web search & Cortana from Windows search.
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable & remove Microsoft Copilot. (W11 only)
|
- Disable & remove Microsoft Copilot. (W11 only)
|
||||||
- Disable Windows Recall snapshots. (W11 only)
|
- Disable Windows Recall snapshots. (W11 only)
|
||||||
|
|
||||||
|
#### Personalisation
|
||||||
|
|
||||||
|
- Enable dark mode for system and apps.
|
||||||
|
- Disable transparency, animations and visual effects.
|
||||||
|
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
|
||||||
|
- Disable the Sticky Keys keyboard shortcut. (W11 only)
|
||||||
|
- Restore the old Windows 10 style context menu. (W11 only)
|
||||||
|
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
||||||
|
|
||||||
#### File Explorer
|
#### File Explorer
|
||||||
|
|
||||||
- Change the default location that File Explorer opens to.
|
- Change the default location that File Explorer opens to.
|
||||||
@@ -118,33 +128,29 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains.
|
- Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains.
|
||||||
|
|
||||||
#### Taskbar & Start
|
#### Taskbar
|
||||||
|
|
||||||
- Align taskbar icons to the left. (W11 only)
|
- Align taskbar icons to the left. (W11 only)
|
||||||
- Hide or change the search icon/box on the taskbar. (W11 only)
|
- Hide or change the search icon/box on the taskbar. (W11 only)
|
||||||
- Hide the taskview button from the taskbar. (W11 only)
|
- Hide the taskview button from the taskbar. (W11 only)
|
||||||
- Disable the widgets service & hide icon from the taskbar.
|
- Disable the widgets service & hide icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Disable & hide the recommended section in the start menu. (W11 only)
|
|
||||||
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
- Enable the 'End Task' option in the taskbar right click menu. (W11 only)
|
||||||
|
|
||||||
#### Context Menu
|
#### Start
|
||||||
|
- Disable & hide the recommended section in the start menu. (W11 only)
|
||||||
- Restore the old Windows 10 style context menu. (W11 only)
|
- Disable the Phone Link mobile devices integration in the start menu. (W11 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
|
||||||
|
|
||||||
#### Other
|
#### Other
|
||||||
|
|
||||||
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
||||||
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
|
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Disable the Sticky Keys keyboard shortcut. (W11 only)
|
|
||||||
- Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user.
|
- Option to [apply changes to a different user](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#running-as-another-user), instead of the currently logged in user.
|
||||||
- [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them.
|
- [Sysprep mode](https://github.com/Raphire/Win11Debloat/wiki/Advanced-Features#sysprep-mode) to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them.
|
||||||
|
|
||||||
### Default Settings
|
### Default Settings
|
||||||
|
|
||||||
The default mode allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
|
Win11Debloat offers a 1-click default mode that allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Click to expand</summary>
|
<summary>Click to expand</summary>
|
||||||
@@ -153,7 +159,7 @@ The default mode allows you to quickly and easily apply the changes that are rec
|
|||||||
- Remove the default selection of bloatware apps. (See below for full list)
|
- Remove the default selection of bloatware apps. (See below for full list)
|
||||||
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen.
|
||||||
- Disable & remove Bing web search & Cortana from Windows search.
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable Microsoft Copilot. (W11 only)
|
- Disable Microsoft Copilot. (W11 only)
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
@@ -326,7 +332,7 @@ The default mode allows you to quickly and easily apply the changes that are rec
|
|||||||
- Microsoft.RemoteDesktop*
|
- Microsoft.RemoteDesktop*
|
||||||
- Windows.DevHome*
|
- Windows.DevHome*
|
||||||
|
|
||||||
* Can be removed by running the script with the relevant parameter. (See parameters section below)
|
* Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details)
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</details>
|
</details>
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
4
Regfiles/Disable_Animations.reg
Normal file
4
Regfiles/Disable_Animations.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Control Panel\Desktop]
|
||||||
|
"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00
|
||||||
Binary file not shown.
5
Regfiles/Disable_Phone_Link_In_Start.reg
Normal file
5
Regfiles/Disable_Phone_Link_In_Start.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable Show mobile device in Start
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe]
|
||||||
|
"IsEnabled"=dword:00000000
|
||||||
5
Regfiles/Disable_Settings_365_Ads.reg
Normal file
5
Regfiles/Disable_Settings_365_Ads.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable MS 365 Ads in Settings Home
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
|
||||||
|
"DisableConsumerAccountStateContent"=dword:00000001
|
||||||
4
Regfiles/Disable_Settings_Home.reg
Normal file
4
Regfiles/Disable_Settings_Home.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
|
||||||
|
"SettingsPageVisibility"="hide:home"
|
||||||
4
Regfiles/Disable_Transparency.reg
Normal file
4
Regfiles/Disable_Transparency.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"EnableTransparency"=dword:00000000
|
||||||
5
Regfiles/Enable_Dark_Mode.reg
Normal file
5
Regfiles/Enable_Dark_Mode.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"AppsUseLightTheme"=dword:00000000
|
||||||
|
"SystemUsesLightTheme"=dword:00000000
|
||||||
4
Regfiles/Sysprep/Disable_Animations.reg
Normal file
4
Regfiles/Sysprep/Disable_Animations.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[hkey_users\default\Control Panel\Desktop]
|
||||||
|
"UserPreferencesMask"=hex:90,12,07,80,10,00,00,00
|
||||||
Binary file not shown.
5
Regfiles/Sysprep/Disable_Phone_Link_In_Start.reg
Normal file
5
Regfiles/Sysprep/Disable_Phone_Link_In_Start.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable Show mobile device in Start
|
||||||
|
[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe]
|
||||||
|
"IsEnabled"=dword:00000000
|
||||||
5
Regfiles/Sysprep/Disable_Settings_365_Ads.reg
Normal file
5
Regfiles/Sysprep/Disable_Settings_365_Ads.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable MS 365 Ads in Settings Home
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
|
||||||
|
"DisableConsumerAccountStateContent"=dword:00000001
|
||||||
4
Regfiles/Sysprep/Disable_Settings_Home.reg
Normal file
4
Regfiles/Sysprep/Disable_Settings_Home.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
|
||||||
|
"SettingsPageVisibility"="hide:home"
|
||||||
Binary file not shown.
4
Regfiles/Sysprep/Disable_Transparency.reg
Normal file
4
Regfiles/Sysprep/Disable_Transparency.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[hkey_users\default\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"EnableTransparency"=dword:00000000
|
||||||
5
Regfiles/Sysprep/Enable_Dark_Mode.reg
Normal file
5
Regfiles/Sysprep/Enable_Dark_Mode.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"AppsUseLightTheme"=dword:00000000
|
||||||
|
"SystemUsesLightTheme"=dword:00000000
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4
Regfiles/Undo/Enable_Animations.reg
Normal file
4
Regfiles/Undo/Enable_Animations.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Control Panel\Desktop]
|
||||||
|
"UserPreferencesMask"=hex:9e,1e,07,80,12,00,00,00
|
||||||
Binary file not shown.
5
Regfiles/Undo/Enable_Light_Mode.reg
Normal file
5
Regfiles/Undo/Enable_Light_Mode.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"AppsUseLightTheme"=dword:00000001
|
||||||
|
"SystemUsesLightTheme"=dword:00000001
|
||||||
5
Regfiles/Undo/Enable_Phone_Link_In_Start.reg
Normal file
5
Regfiles/Undo/Enable_Phone_Link_In_Start.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Enable Show mobile device in Start
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start\Companions\Microsoft.YourPhone_8wekyb3d8bbwe]
|
||||||
|
"IsEnabled"=dword:00000001
|
||||||
5
Regfiles/Undo/Enable_Settings_365_Ads.reg
Normal file
5
Regfiles/Undo/Enable_Settings_365_Ads.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Enable MS 365 Ads in Settings Home
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
|
||||||
|
"DisableConsumerAccountStateContent"=-
|
||||||
4
Regfiles/Undo/Enable_Settings_Home.reg
Normal file
4
Regfiles/Undo/Enable_Settings_Home.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
|
||||||
|
"SettingsPageVisibility"=-
|
||||||
4
Regfiles/Undo/Enable_Transparency.reg
Normal file
4
Regfiles/Undo/Enable_Transparency.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize]
|
||||||
|
"EnableTransparency"=dword:00000001
|
||||||
15
Run.bat
15
Run.bat
@@ -1 +1,14 @@
|
|||||||
PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%~dp0Win11Debloat.ps1""' -Verb RunAs}"
|
@echo off
|
||||||
|
:: Set Windows Terminal installation paths. (Default and Scoop installation)
|
||||||
|
set "wtDefaultPath=%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe"
|
||||||
|
set "wtScoopPath=%USERPROFILE%\scoop\apps\windows-terminal\current\wt.exe"
|
||||||
|
|
||||||
|
:: Launch the script in Windows Terminal if installed, otherwise use default PowerShell.
|
||||||
|
if exist "%wtDefaultPath%" (
|
||||||
|
PowerShell -Command "Start-Process -FilePath '%wtDefaultPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs"
|
||||||
|
) else if exist "%wtScoopPath%" (
|
||||||
|
PowerShell -Command "Start-Process -FilePath '%wtScoopPath%' -ArgumentList 'PowerShell -NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs"
|
||||||
|
) else (
|
||||||
|
echo Windows Terminal not found, using default PowerShell...
|
||||||
|
PowerShell -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File \"\"%~dp0Win11Debloat.ps1\"\"' -Verb RunAs}"
|
||||||
|
)
|
||||||
|
|||||||
105
Win11Debloat.ps1
105
Win11Debloat.ps1
@@ -25,13 +25,19 @@ param (
|
|||||||
[switch]$DisableDesktopSpotlight,
|
[switch]$DisableDesktopSpotlight,
|
||||||
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
||||||
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
|
[switch]$DisableWindowsSuggestions, [switch]$DisableSuggestions,
|
||||||
|
[switch]$DisableSettings365Ads,
|
||||||
|
[switch]$DisableSettingsHome,
|
||||||
[switch]$ShowHiddenFolders,
|
[switch]$ShowHiddenFolders,
|
||||||
[switch]$ShowKnownFileExt,
|
[switch]$ShowKnownFileExt,
|
||||||
[switch]$HideDupliDrive,
|
[switch]$HideDupliDrive,
|
||||||
|
[switch]$EnableDarkMode,
|
||||||
|
[switch]$DisableTransparency,
|
||||||
|
[switch]$DisableAnimations,
|
||||||
[switch]$TaskbarAlignLeft,
|
[switch]$TaskbarAlignLeft,
|
||||||
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
||||||
[switch]$HideTaskview,
|
[switch]$HideTaskview,
|
||||||
[switch]$DisableStartRecommended,
|
[switch]$DisableStartRecommended,
|
||||||
|
[switch]$DisableStartPhoneLink,
|
||||||
[switch]$DisableCopilot,
|
[switch]$DisableCopilot,
|
||||||
[switch]$DisableRecall,
|
[switch]$DisableRecall,
|
||||||
[switch]$DisableWidgets, [switch]$HideWidgets,
|
[switch]$DisableWidgets, [switch]$HideWidgets,
|
||||||
@@ -66,7 +72,7 @@ if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Log script output to 'Win11Debloat.log' at the specified path
|
# Log script output to 'Win11Debloat.log' at the specified path
|
||||||
if($LogPath -and (Test-Path $LogPath)) {
|
if ($LogPath -and (Test-Path $LogPath)) {
|
||||||
Start-Transcript -Path "$LogPath/Win11Debloat.log" -Append -IncludeInvocationHeader -Force | Out-Null
|
Start-Transcript -Path "$LogPath/Win11Debloat.log" -Append -IncludeInvocationHeader -Force | Out-Null
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -578,8 +584,12 @@ function RestartExplorer {
|
|||||||
Write-Host "Warning: The Sticky Keys setting changes will only take effect after a reboot" -ForegroundColor Yellow
|
Write-Host "Warning: The Sticky Keys setting changes will only take effect after a reboot" -ForegroundColor Yellow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($script:Params.ContainsKey("DisableAnimations")) {
|
||||||
|
Write-Host "Warning: Animations will only be disabled after a reboot" -ForegroundColor Yellow
|
||||||
|
}
|
||||||
|
|
||||||
# Only restart if the powershell process matches the OS architecture.
|
# Only restart if the powershell process matches the OS architecture.
|
||||||
# Restarting explorer from a 32bit Powershell window will fail on a 64bit OS
|
# Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS
|
||||||
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
|
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
|
||||||
Stop-Process -processName: Explorer -Force
|
Stop-Process -processName: Explorer -Force
|
||||||
}
|
}
|
||||||
@@ -593,7 +603,7 @@ function RestartExplorer {
|
|||||||
# Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/
|
# Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/
|
||||||
function ReplaceStartMenuForAllUsers {
|
function ReplaceStartMenuForAllUsers {
|
||||||
param (
|
param (
|
||||||
$startMenuTemplate = "$PSScriptRoot/Start/start2.bin"
|
$startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
Write-Output "> Removing all pinned apps from the start menu for all users..."
|
Write-Output "> Removing all pinned apps from the start menu for all users..."
|
||||||
@@ -611,7 +621,7 @@ function ReplaceStartMenuForAllUsers {
|
|||||||
|
|
||||||
# Go through all users and replace the start menu file
|
# Go through all users and replace the start menu file
|
||||||
ForEach ($startMenuPath in $usersStartMenuPaths) {
|
ForEach ($startMenuPath in $usersStartMenuPaths) {
|
||||||
ReplaceStartMenu "$($startMenuPath.Fullname)\start2.bin" $startMenuTemplate
|
ReplaceStartMenu $startMenuTemplate "$($startMenuPath.Fullname)\start2.bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Also replace the start menu file for the default user profile
|
# Also replace the start menu file for the default user profile
|
||||||
@@ -634,7 +644,7 @@ function ReplaceStartMenuForAllUsers {
|
|||||||
# Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/
|
# Credit: https://lazyadmin.nl/win-11/customize-windows-11-start-menu-layout/
|
||||||
function ReplaceStartMenu {
|
function ReplaceStartMenu {
|
||||||
param (
|
param (
|
||||||
$startMenuTemplate = "$PSScriptRoot/Start/start2.bin",
|
$startMenuTemplate = "$PSScriptRoot/Assets/Start/start2.bin",
|
||||||
$startMenuBinFile = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin"
|
$startMenuBinFile = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -817,9 +827,9 @@ function DisplayCustomModeOptions {
|
|||||||
Write-Host "Options:" -ForegroundColor Yellow
|
Write-Host "Options:" -ForegroundColor Yellow
|
||||||
Write-Host " (n) Don't remove any apps" -ForegroundColor Yellow
|
Write-Host " (n) Don't remove any apps" -ForegroundColor Yellow
|
||||||
Write-Host " (1) Only remove the default selection of bloatware apps from 'Appslist.txt'" -ForegroundColor Yellow
|
Write-Host " (1) Only remove the default selection of bloatware apps from 'Appslist.txt'" -ForegroundColor Yellow
|
||||||
Write-Host " (2) Remove default selection of bloatware apps, aswell as mail & calendar apps, developer apps and gaming apps" -ForegroundColor Yellow
|
Write-Host " (2) Remove default selection of bloatware apps, as well as mail & calendar apps, developer apps and gaming apps" -ForegroundColor Yellow
|
||||||
Write-Host " (3) Select which apps to remove and which to keep" -ForegroundColor Yellow
|
Write-Host " (3) Manually select which apps to remove" -ForegroundColor Yellow
|
||||||
$RemoveAppsInput = Read-Host "Remove any pre-installed apps? (n/1/2/3)"
|
$RemoveAppsInput = Read-Host "Do you want to remove any apps? Apps will be removed for all users (n/1/2/3)"
|
||||||
|
|
||||||
# Show app selection form if user entered option 3
|
# Show app selection form if user entered option 3
|
||||||
if ($RemoveAppsInput -eq '3') {
|
if ($RemoveAppsInput -eq '3') {
|
||||||
@@ -858,7 +868,7 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable Xbox game/screen recording? Also stops gaming overlay popups (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable Xbox game/screen recording? This also stops gaming overlay popups (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -872,16 +882,16 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer, desktop and lockscreen? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, explorer and lockscreen? (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer'
|
AddParameter 'DisableSuggestions' 'Disable tips, tricks, suggestions and ads in start, settings, notifications and File Explorer'
|
||||||
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
|
AddParameter 'DisableSettings365Ads' 'Disable Microsoft 365 ads in Settings Home'
|
||||||
AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen'
|
AddParameter 'DisableLockscreenTips' 'Disable tips & tricks on the lockscreen'
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable & remove bing web search, bing AI & cortana in Windows search? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable & remove Bing web search, Bing AI and Cortana from Windows search? (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableBing' 'Disable & remove bing web search, bing AI & cortana in Windows search'
|
AddParameter 'DisableBing' 'Disable & remove Bing web search, Bing AI and Cortana from Windows search'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only show this option for Windows 11 users running build 22621 or later
|
# Only show this option for Windows 11 users running build 22621 or later
|
||||||
@@ -894,6 +904,25 @@ function DisplayCustomModeOptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt "Disable Windows Spotlight background on desktop? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'DisableDesktopSpotlight' 'Disable the Windows Spotlight desktop background option.'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt "Enable dark mode for system and apps? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'EnableDarkMode' 'Enable dark mode for system and apps'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt "Disable transparency, animations and visual effects? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'DisableTransparency' 'Disable transparency effects'
|
||||||
|
AddParameter 'DisableAnimations' 'Disable animations and visual effects'
|
||||||
|
}
|
||||||
|
|
||||||
# Only show this option for Windows 11 users running build 22000 or later
|
# Only show this option for Windows 11 users running build 22000 or later
|
||||||
if ($WinVersion -ge 22000) {
|
if ($WinVersion -ge 22000) {
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -920,7 +949,7 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable Fast Start-up? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable Fast Start-up? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableFastStartup' 'Disable Fast Start-up'
|
AddParameter 'DisableFastStartup' 'Disable Fast Start-up'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -987,6 +1016,12 @@ function DisplayCustomModeOptions {
|
|||||||
if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.'
|
AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Disable the Phone Link mobile devices integration in the start menu? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'DisableStartPhoneLink' 'Disable the Phone Link mobile devices integration in the start menu.'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1510,18 +1545,26 @@ switch ($script:Params.Keys) {
|
|||||||
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg"
|
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." "Disable_Windows_Suggestions.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'DisableDesktopSpotlight' {
|
|
||||||
RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg"
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "DisableLockscrTips", "DisableLockscreenTips"} {
|
{$_ -in "DisableLockscrTips", "DisableLockscreenTips"} {
|
||||||
RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg"
|
RegImport "> Disabling tips & tricks on the lockscreen..." "Disable_Lockscreen_Tips.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'DisableDesktopSpotlight' {
|
||||||
|
RegImport "> Disabling the 'Windows Spotlight' desktop background option..." "Disable_Desktop_Spotlight.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableSettings365Ads' {
|
||||||
|
RegImport "> Disabling Microsoft 365 ads in Settings Home..." "Disable_Settings_365_Ads.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableSettingsHome' {
|
||||||
|
RegImport "> Disabling the Settings Home page..." "Disable_Settings_Home.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
{$_ -in "DisableBingSearches", "DisableBing"} {
|
{$_ -in "DisableBingSearches", "DisableBing"} {
|
||||||
RegImport "> Disabling bing web search, bing AI & cortana in Windows search..." "Disable_Bing_Cortana_In_Search.reg"
|
RegImport "> Disabling Bing web search, Bing AI and Cortana from Windows search..." "Disable_Bing_Cortana_In_Search.reg"
|
||||||
|
|
||||||
# Also remove the app package for bing search
|
# Also remove the app package for Bing search
|
||||||
$appsList = 'Microsoft.BingSearch'
|
$appsList = 'Microsoft.BingSearch'
|
||||||
RemoveApps $appsList
|
RemoveApps $appsList
|
||||||
continue
|
continue
|
||||||
@@ -1529,7 +1572,7 @@ switch ($script:Params.Keys) {
|
|||||||
'DisableCopilot' {
|
'DisableCopilot' {
|
||||||
RegImport "> Disabling & removing Microsoft Copilot..." "Disable_Copilot.reg"
|
RegImport "> Disabling & removing Microsoft Copilot..." "Disable_Copilot.reg"
|
||||||
|
|
||||||
# Also remove the app package for copilot
|
# Also remove the app package for Copilot
|
||||||
$appsList = 'Microsoft.Copilot'
|
$appsList = 'Microsoft.Copilot'
|
||||||
RemoveApps $appsList
|
RemoveApps $appsList
|
||||||
continue
|
continue
|
||||||
@@ -1578,6 +1621,22 @@ switch ($script:Params.Keys) {
|
|||||||
RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg"
|
RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'DisableStartPhoneLink' {
|
||||||
|
RegImport "> Disabling the Phone Link mobile devices integration in the start menu..." "Disable_Phone_Link_In_Start.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'EnableDarkMode' {
|
||||||
|
RegImport "> Enabling dark mode for system and apps..." "Enable_Dark_Mode.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableTransparency' {
|
||||||
|
RegImport "> Disabling transparency effects..." "Disable_Transparency.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableAnimations' {
|
||||||
|
RegImport "> Disabling animations and visual effects..." "Disable_Animations.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'TaskbarAlignLeft' {
|
'TaskbarAlignLeft' {
|
||||||
RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg"
|
RegImport "> Aligning taskbar buttons to the left..." "Align_Taskbar_Left.reg"
|
||||||
continue
|
continue
|
||||||
@@ -1604,6 +1663,10 @@ switch ($script:Params.Keys) {
|
|||||||
}
|
}
|
||||||
{$_ -in "HideWidgets", "DisableWidgets"} {
|
{$_ -in "HideWidgets", "DisableWidgets"} {
|
||||||
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg"
|
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." "Disable_Widgets_Taskbar.reg"
|
||||||
|
|
||||||
|
# Also remove the app package for Widgets
|
||||||
|
$appsList = 'Microsoft.StartExperiencesApp'
|
||||||
|
RemoveApps $appsList
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
{$_ -in "HideChat", "DisableChat"} {
|
{$_ -in "HideChat", "DisableChat"} {
|
||||||
|
|||||||
Reference in New Issue
Block a user