mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Compare commits
19 Commits
2025.09.27
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e66103f57a | ||
|
|
6c201fc027 | ||
|
|
2d9e8530eb | ||
|
|
14ba4d529c | ||
|
|
f97a01e8a9 | ||
|
|
791232e097 | ||
|
|
75ef30e6fb | ||
|
|
c1a48120d3 | ||
|
|
dc30664001 | ||
|
|
5ae374dff3 | ||
|
|
6c97bbead0 | ||
|
|
f46618dfe2 | ||
|
|
cf1a58b0d0 | ||
|
|
86a2555454 | ||
|
|
070e692b90 | ||
|
|
44aa34ab9f | ||
|
|
60a1b3eb6b | ||
|
|
3f8caf86ee | ||
|
|
f1595cd91e |
@@ -29,8 +29,10 @@ Microsoft.Office.OneNote # Digital note-taking app (Univer
|
|||||||
Microsoft.Office.Sway # Presentation and storytelling app
|
Microsoft.Office.Sway # Presentation and storytelling app
|
||||||
Microsoft.OneConnect # Mobile Operator management app (Replaced by Mobile Plans)
|
Microsoft.OneConnect # Mobile Operator management app (Replaced by Mobile Plans)
|
||||||
Microsoft.Print3D # 3D printing preparation software
|
Microsoft.Print3D # 3D printing preparation software
|
||||||
|
Microsoft.PowerAutomateDesktop # Desktop automation tool (RPA)
|
||||||
Microsoft.SkypeApp # Skype communication app (Universal Windows Platform version)
|
Microsoft.SkypeApp # Skype communication app (Universal Windows Platform version)
|
||||||
Microsoft.Todos # To-do list and task management app
|
Microsoft.Todos # To-do list and task management app
|
||||||
|
Microsoft.Windows.DevHome # Developer dashboard and tool configuration utility, no longer supported
|
||||||
Microsoft.WindowsAlarms # Alarms & Clock app
|
Microsoft.WindowsAlarms # Alarms & Clock app
|
||||||
Microsoft.WindowsFeedbackHub # App for providing feedback to Microsoft on Windows
|
Microsoft.WindowsFeedbackHub # App for providing feedback to Microsoft on Windows
|
||||||
Microsoft.WindowsMaps # Mapping and navigation app
|
Microsoft.WindowsMaps # Mapping and navigation app
|
||||||
@@ -103,17 +105,16 @@ XING # Professional networking platfor
|
|||||||
#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.GamingApp # Modern Xbox Gaming App, required for installing some PC games
|
||||||
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters and support interactions
|
#Microsoft.GetHelp # Required for some Windows 11 Troubleshooters and support interactions
|
||||||
|
#Microsoft.M365Companions # Microsoft 365 (Business) Calendar, Files and People mini-apps, these apps may be reinstalled if enabled by your Microsoft 365 admin
|
||||||
#Microsoft.MSPaint # Paint 3D (Modern paint application with 3D features)
|
#Microsoft.MSPaint # Paint 3D (Modern paint application with 3D features)
|
||||||
#Microsoft.OneDrive # OneDrive consumer cloud storage client
|
#Microsoft.OneDrive # OneDrive consumer cloud storage client
|
||||||
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
|
#Microsoft.OutlookForWindows # New mail app: Outlook for Windows
|
||||||
#Microsoft.Paint # Classic Paint (Traditional 2D paint application)
|
#Microsoft.Paint # Classic Paint (Traditional 2D paint application)
|
||||||
#Microsoft.People # Required for & included with Mail & Calendar (Contacts management)
|
#Microsoft.People # Required for & included with Mail & Calendar (Contacts management)
|
||||||
#Microsoft.PowerAutomateDesktop # Desktop automation tool (RPA)
|
|
||||||
#Microsoft.RemoteDesktop # Remote Desktop client app
|
#Microsoft.RemoteDesktop # Remote Desktop client app
|
||||||
#Microsoft.ScreenSketch # Snipping Tool (Screenshot and annotation tool)
|
#Microsoft.ScreenSketch # Snipping Tool (Screenshot and annotation tool)
|
||||||
#Microsoft.StartExperiencesApp # This app powers Windows Widgets My Feed
|
#Microsoft.StartExperiencesApp # This app powers Windows Widgets My Feed
|
||||||
#Microsoft.Whiteboard # Digital collaborative whiteboard app
|
#Microsoft.Whiteboard # Digital collaborative whiteboard app
|
||||||
#Microsoft.Windows.DevHome # Developer dashboard and tool configuration utility
|
|
||||||
#Microsoft.Windows.Photos # Default photo viewing and basic editing app
|
#Microsoft.Windows.Photos # Default photo viewing and basic editing app
|
||||||
#Microsoft.WindowsCalculator # Calculator app
|
#Microsoft.WindowsCalculator # Calculator app
|
||||||
#Microsoft.WindowsCamera # Camera app for using built-in or connected cameras
|
#Microsoft.WindowsCamera # Camera app for using built-in or connected cameras
|
||||||
|
|||||||
14
Assets/Menus/Info
Normal file → Executable file
14
Assets/Menus/Info
Normal file → Executable file
@@ -6,7 +6,7 @@ disable telemetry, remove intrusive interface elements and much more.
|
|||||||
All Features
|
All Features
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
App Removal
|
App Removal
|
||||||
- Remove a wide variety of bloatware apps.
|
- Remove a wide variety of preinstalled apps.
|
||||||
- Remove or replace all pinned apps from start for the current user, or for all existing & new users. (W11 only)
|
- Remove or replace all pinned apps from start for the current user, or for all existing & new users. (W11 only)
|
||||||
|
|
||||||
Telemetry, Tracking & Suggested Content
|
Telemetry, Tracking & Suggested Content
|
||||||
@@ -34,15 +34,16 @@ Personalisation
|
|||||||
|
|
||||||
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 and drives.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
||||||
- 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 navigation pane. (W10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer sidepanel.
|
- Hide duplicate removable drive entries from the File Explorer navigation pane.
|
||||||
|
|
||||||
Taskbar
|
Taskbar
|
||||||
- Align taskbar icons to the left. (W11 only)
|
- Align taskbar icons to the left. (W11 only)
|
||||||
- Choose combine mode for taskbar buttons and labels. (W11 only)
|
- Choose combine mode for taskbar buttons and labels. (W11 only)
|
||||||
|
- Choose how app icons are shown on the taskbar when using multiple monitors. (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 widgets on the taskbar & lockscreen.
|
- Disable widgets on the taskbar & lockscreen.
|
||||||
@@ -55,7 +56,7 @@ Start
|
|||||||
- Disable the Phone Link mobile devices integration in the start menu. (W11 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 Bar game/screen recording and controller integration. This also disables `msgaming overlay` popups.
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only)
|
- Disable network connectivity during Modern Standby to reduce battery drain. (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.
|
||||||
@@ -67,9 +68,8 @@ Other
|
|||||||
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 or your custom selection of apps.
|
- Remove the default selection or your custom selection of apps.
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
- Disable tips, tricks, suggestions & ads across Windows.
|
||||||
- Disable ads, suggestions and the MSN news feed in Microsoft Edge.
|
- Disable ads, suggestions and the MSN news feed in Microsoft Edge.
|
||||||
- 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 & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable & remove Microsoft Copilot.
|
- Disable & remove Microsoft Copilot.
|
||||||
- Disable Windows Recall. (W11 only)
|
- Disable Windows Recall. (W11 only)
|
||||||
|
|||||||
7
Get.ps1
7
Get.ps1
@@ -13,11 +13,11 @@ param (
|
|||||||
[switch]$RemoveAppsCustom,
|
[switch]$RemoveAppsCustom,
|
||||||
[switch]$RemoveGamingApps,
|
[switch]$RemoveGamingApps,
|
||||||
[switch]$RemoveCommApps,
|
[switch]$RemoveCommApps,
|
||||||
[switch]$RemoveDevApps,
|
|
||||||
[switch]$RemoveHPApps,
|
[switch]$RemoveHPApps,
|
||||||
[switch]$RemoveW11Outlook,
|
[switch]$RemoveW11Outlook,
|
||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
|
[switch]$DisableControllerOverlay,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
[switch]$DisableFastStartup,
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableModernStandbyNetworking,
|
[switch]$DisableModernStandbyNetworking,
|
||||||
@@ -36,6 +36,8 @@ param (
|
|||||||
[switch]$DisableAnimations,
|
[switch]$DisableAnimations,
|
||||||
[switch]$TaskbarAlignLeft,
|
[switch]$TaskbarAlignLeft,
|
||||||
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
|
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
|
||||||
|
[switch]$CombineMMTaskbarAlways, [switch]$CombineMMTaskbarWhenFull, [switch]$CombineMMTaskbarNever,
|
||||||
|
[switch]$MMTaskbarModeAll, [switch]$MMTaskbarModeMainActive, [switch]$MMTaskbarModeActive,
|
||||||
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
||||||
[switch]$HideTaskview,
|
[switch]$HideTaskview,
|
||||||
[switch]$DisableStartRecommended,
|
[switch]$DisableStartRecommended,
|
||||||
@@ -63,6 +65,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
[switch]$DisableMusic, [switch]$HideMusic,
|
[switch]$DisableMusic, [switch]$HideMusic,
|
||||||
@@ -88,7 +91,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-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.09.27 -OutFile "$env:TEMP/win11debloat.zip"
|
Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.10.06 -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") {
|
||||||
|
|||||||
161
README.md
Normal file → Executable file
161
README.md
Normal file → Executable file
@@ -101,8 +101,8 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
#### Telemetry, Tracking & Suggested Content
|
#### Telemetry, Tracking & Suggested Content
|
||||||
|
|
||||||
- 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 & ads across Windows.
|
||||||
- Disable ads and the MSN news feed in Microsoft Edge.
|
- Disable ads, suggestions and the MSN news feed in Microsoft Edge.
|
||||||
- Disable the 'Windows Spotlight' desktop background option.
|
- Disable the 'Windows Spotlight' desktop background option.
|
||||||
|
|
||||||
#### Bing Web Search, Copilot & AI Features
|
#### Bing Web Search, Copilot & AI Features
|
||||||
@@ -137,6 +137,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
|
|
||||||
- Align taskbar icons to the left. (W11 only)
|
- Align taskbar icons to the left. (W11 only)
|
||||||
- Choose combine mode for taskbar buttons and labels. (W11 only)
|
- Choose combine mode for taskbar buttons and labels. (W11 only)
|
||||||
|
- Choose how app icons are shown on the taskbar when using multiple monitors. (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 widgets on the taskbar & lockscreen.
|
- Disable widgets on the taskbar & lockscreen.
|
||||||
@@ -151,7 +152,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
|
|
||||||
#### Other
|
#### Other
|
||||||
|
|
||||||
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
- Disable Xbox Game Bar game/screen recording and controller integration. This also disables the annoying `msgaming overlay` popups if you uninstalled the Xbox Game Bar app.
|
||||||
- Disable Fast Start-up to ensure a full shutdown.
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Disable network connectivity during Modern Standby to reduce battery drain. (W11 only)
|
- Disable network connectivity during Modern Standby to reduce battery drain. (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.
|
||||||
@@ -169,7 +170,7 @@ Alternatively, you can launch the script with the `-RunDefaults` or `-RunDefault
|
|||||||
#### Changes included in the default mode
|
#### Changes included in the default mode
|
||||||
- Remove the default or your custom selection of apps. (See below for the default selection of apps)
|
- Remove the default or your custom selection of apps. (See below for the default selection of apps)
|
||||||
- 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 & ads across Windows.
|
||||||
- Disable ads, suggestions and the MSN news feed in Microsoft Edge.
|
- Disable ads, suggestions and the MSN news feed in Microsoft Edge.
|
||||||
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
- Disable & remove Bing web search, Bing AI and Cortana from Windows search.
|
||||||
- Disable & remove Microsoft Copilot.
|
- Disable & remove Microsoft Copilot.
|
||||||
@@ -190,50 +191,50 @@ These apps are uninstalled when you opt to remove the default selection of apps.
|
|||||||
<summary>Click to expand</summary>
|
<summary>Click to expand</summary>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
||||||
Microsoft bloat:
|
Microsoft apps:
|
||||||
- Clipchamp.Clipchamp
|
- Clipchamp.Clipchamp (Video editor from Microsoft)
|
||||||
- Microsoft.3DBuilder
|
- Microsoft.3DBuilder (Basic 3D modeling software)
|
||||||
- Microsoft.549981C3F5F10 (Cortana app)
|
- Microsoft.549981C3F5F10 (Cortana app, discontinued)
|
||||||
- Microsoft.BingFinance
|
- Microsoft.BingFinance (Finance news and tracking via Bing, discontinued)
|
||||||
- Microsoft.BingFoodAndDrink
|
- Microsoft.BingFoodAndDrink (Recipes and food news via Bing, discontinued)
|
||||||
- Microsoft.BingHealthAndFitness
|
- Microsoft.BingHealthAndFitness (Health and fitness tracking/news via Bing, discontinued)
|
||||||
- Microsoft.BingNews
|
- Microsoft.BingNews (News aggregator via Bing, replaced by Microsoft News/Start)
|
||||||
- Microsoft.BingSearch* (Bing web search in Windows)
|
- Microsoft.BingSports (Sports news and scores via Bing, discontinued)
|
||||||
- Microsoft.BingSports
|
- Microsoft.BingTranslator (Translation service via Bing)
|
||||||
- Microsoft.BingTranslator
|
- Microsoft.BingTravel (Travel planning and news via Bing, discontinued)
|
||||||
- Microsoft.BingTravel
|
- Microsoft.BingWeather (Weather forecast via Bing)
|
||||||
- Microsoft.BingWeather
|
- Microsoft.Copilot (AI assistant integrated into Windows)
|
||||||
- Microsoft.Copilot
|
- Microsoft.Getstarted (Tips and introductory guide for Windows, cannot be uninstalled in Windows 11)
|
||||||
- Microsoft.Getstarted (Cannot be uninstalled in Windows 11)
|
- Microsoft.Messaging (Messaging app, often integrates with Skype, largely deprecated)
|
||||||
- Microsoft.Messaging
|
- Microsoft.Microsoft3DViewer (Viewer for 3D models)
|
||||||
- Microsoft.Microsoft3DViewer
|
- Microsoft.MicrosoftJournal (Digital note-taking app optimized for pen input)
|
||||||
- Microsoft.MicrosoftJournal
|
- Microsoft.MicrosoftOfficeHub (Hub to access Microsoft Office apps and documents, precursor to Microsoft 365 app)
|
||||||
- Microsoft.MicrosoftOfficeHub
|
- Microsoft.MicrosoftPowerBIForWindows (Business analytics service client)
|
||||||
- Microsoft.MicrosoftPowerBIForWindows
|
- Microsoft.MicrosoftSolitaireCollection (Collection of solitaire card games)
|
||||||
- Microsoft.MicrosoftSolitaireCollection
|
- Microsoft.MicrosoftStickyNotes (Digital sticky notes app, deprecated & replaced by OneNote)
|
||||||
- Microsoft.MicrosoftStickyNotes
|
- Microsoft.MixedReality.Portal (Portal for Windows Mixed Reality headsets)
|
||||||
- Microsoft.MixedReality.Portal
|
- Microsoft.NetworkSpeedTest (Internet connection speed test utility)
|
||||||
- Microsoft.NetworkSpeedTest
|
- Microsoft.News (News aggregator. Replaced Bing News and now part of Microsoft Start)
|
||||||
- Microsoft.News
|
- Microsoft.Office.OneNote (Digital note-taking app, Universal Windows Platform version)
|
||||||
- Microsoft.Office.OneNote (Discontinued UWP version only, does not remove new MS365 versions)
|
- Microsoft.Office.Sway (Presentation and storytelling app)
|
||||||
- Microsoft.Office.Sway
|
- Microsoft.OneConnect (Mobile Operator management app, replaced by Mobile Plans)
|
||||||
- Microsoft.OneConnect
|
- Microsoft.PowerAutomateDesktop (Desktop automation tool)
|
||||||
- Microsoft.Print3D
|
- Microsoft.Print3D (3D printing preparation software)
|
||||||
- Microsoft.StartExperiencesApp** (Widgets app)
|
- Microsoft.SkypeApp (Skype communication app, Universal Windows Platform version)
|
||||||
- Microsoft.SkypeApp
|
- Microsoft.Todos (To-do list and task management app)
|
||||||
- Microsoft.Todos
|
- Microsoft.Windows.DevHome (Developer dashboard and tool configuration utility, no longer supported)
|
||||||
- Microsoft.WindowsAlarms
|
- Microsoft.WindowsAlarms (Alarms & Clock app)
|
||||||
- Microsoft.WindowsFeedbackHub
|
- Microsoft.WindowsFeedbackHub (App for providing feedback to Microsoft on Windows)
|
||||||
- Microsoft.WindowsMaps
|
- Microsoft.WindowsMaps (Mapping and navigation app)
|
||||||
- Microsoft.WindowsSoundRecorder
|
- Microsoft.WindowsSoundRecorder (Basic audio recording app)
|
||||||
- Microsoft.XboxApp (Old Xbox Console Companion App, no longer supported)
|
- Microsoft.XboxApp (Old Xbox Console Companion App, no longer supported)
|
||||||
- Microsoft.ZuneVideo
|
- Microsoft.ZuneVideo (Movies & TV app for renting/buying/playing video content. Rebranded as "Films & TV")
|
||||||
- MicrosoftCorporationII.MicrosoftFamily (Microsoft Family Safety)
|
- MicrosoftCorporationII.MicrosoftFamily (Family Safety App for managing family accounts and settings)
|
||||||
- MicrosoftCorporationII.QuickAssist (Remote assistance tool)
|
- MicrosoftCorporationII.QuickAssist (Remote assistance tool)
|
||||||
- MicrosoftTeams (Old personal version of MS Teams from the MS Store)
|
- MicrosoftTeams (Old MS Teams personal, MS Store version)
|
||||||
- MSTeams (New MS Teams app)
|
- MSTeams (New MS Teams app. Work/School or Personal)
|
||||||
|
|
||||||
Third party bloat:
|
Third party apps:
|
||||||
- ACGMediaPlayer
|
- ACGMediaPlayer
|
||||||
- ActiproSoftwareLLC
|
- ActiproSoftwareLLC
|
||||||
- AdobeSystemsIncorporated.AdobePhotoshopExpress
|
- AdobeSystemsIncorporated.AdobePhotoshopExpress
|
||||||
@@ -282,9 +283,6 @@ These apps are uninstalled when you opt to remove the default selection of apps.
|
|||||||
- WinZipUniversal
|
- WinZipUniversal
|
||||||
- Wunderlist
|
- Wunderlist
|
||||||
- XING
|
- XING
|
||||||
|
|
||||||
* Removed when disabling Bing web search, Bing AI and Cortana from Windows search
|
|
||||||
** Removed when disabling widgets on the taskbar & lockscreen
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -296,21 +294,23 @@ These apps will not be removed by Win11Debloat unless explicitly selected by the
|
|||||||
<summary>Click to expand</summary>
|
<summary>Click to expand</summary>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
||||||
General apps that are not removed by default:
|
Miscellaneous apps:
|
||||||
- Microsoft.Edge (Edge browser, only removeable in the EEA)
|
- Microsoft.Edge (Edge browser, only removeable in the EEA)
|
||||||
- Microsoft.GetHelp (Required for some Windows 11 Troubleshooters)
|
- Microsoft.GetHelp (Required for some Windows 11 Troubleshooters)
|
||||||
|
- Microsoft.M365Companions (Microsoft 365 Business Calendar, Files and People mini-apps, these apps may be reinstalled if enabled by your Microsoft 365 admin)
|
||||||
- Microsoft.MSPaint (Paint 3D)
|
- Microsoft.MSPaint (Paint 3D)
|
||||||
- Microsoft.OutlookForWindows* (New mail app)
|
- Microsoft.OutlookForWindows (New mail app)
|
||||||
- Microsoft.OneDrive (OneDrive consumer)
|
- Microsoft.OneDrive (OneDrive consumer)
|
||||||
- Microsoft.Paint (Classic Paint)
|
- Microsoft.Paint (Classic Paint)
|
||||||
- Microsoft.People* (Required for & included with Mail & Calendar)
|
- Microsoft.People (Required for & included with Mail & Calendar)
|
||||||
|
- Microsoft.RemoteDesktop
|
||||||
- Microsoft.ScreenSketch (Snipping Tool)
|
- Microsoft.ScreenSketch (Snipping Tool)
|
||||||
- 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.Photos
|
- Microsoft.Windows.Photos
|
||||||
- Microsoft.WindowsCalculator
|
- Microsoft.WindowsCalculator
|
||||||
- Microsoft.WindowsCamera
|
- Microsoft.WindowsCamera
|
||||||
- Microsoft.WindowsNotepad
|
- Microsoft.WindowsNotepad
|
||||||
- Microsoft.windowscommunicationsapps* (Mail & Calendar)
|
- Microsoft.windowscommunicationsapps (Mail & Calendar)
|
||||||
- Microsoft.WindowsStore (Microsoft Store, NOTE: This app cannot be reinstalled!)
|
- Microsoft.WindowsStore (Microsoft Store, NOTE: This app cannot be reinstalled!)
|
||||||
- Microsoft.WindowsTerminal (New default terminal app in Windows 11)
|
- Microsoft.WindowsTerminal (New default terminal app in Windows 11)
|
||||||
- Microsoft.YourPhone (Phone Link)
|
- Microsoft.YourPhone (Phone Link)
|
||||||
@@ -318,41 +318,34 @@ These apps will not be removed by Win11Debloat unless explicitly selected by the
|
|||||||
- 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)
|
||||||
|
|
||||||
HP apps that are not removed by default:
|
Gaming related apps:
|
||||||
- AD2F1837.HPAIExperienceCenter*
|
- Microsoft.GamingApp (Modern Xbox Gaming App, required for installing some games)
|
||||||
- AD2F1837.HPConnectedMusic*
|
- Microsoft.XboxGameOverlay (Game overlay, required for some games)
|
||||||
- AD2F1837.HPConnectedPhotopoweredbySnapfish*
|
- Microsoft.XboxGamingOverlay (Game overlay, required for some games)
|
||||||
- AD2F1837.HPDesktopSupportUtilities*
|
|
||||||
- AD2F1837.HPEasyClean*
|
|
||||||
- AD2F1837.HPFileViewer*
|
|
||||||
- AD2F1837.HPJumpStarts*
|
|
||||||
- AD2F1837.HPPCHardwareDiagnosticsWindows*
|
|
||||||
- AD2F1837.HPPowerManager*
|
|
||||||
- AD2F1837.HPPrinterControl*
|
|
||||||
- AD2F1837.HPPrivacySettings*
|
|
||||||
- AD2F1837.HPQuickDrop*
|
|
||||||
- AD2F1837.HPQuickTouch*
|
|
||||||
- AD2F1837.HPRegistration*
|
|
||||||
- AD2F1837.HPSupportAssistant*
|
|
||||||
- AD2F1837.HPSureShieldAI*
|
|
||||||
- AD2F1837.HPSystemInformation*
|
|
||||||
- AD2F1837.HPWelcome*
|
|
||||||
- AD2F1837.HPWorkWell*
|
|
||||||
- AD2F1837.myHP*
|
|
||||||
|
|
||||||
Gaming related apps that are not removed by default:
|
|
||||||
- Microsoft.GamingApp* (Modern Xbox Gaming App, required for installing some games)
|
|
||||||
- Microsoft.XboxGameOverlay* (Game overlay, required for some games)
|
|
||||||
- Microsoft.XboxGamingOverlay* (Game overlay, required 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, NOTE: This app cannot be reinstalled!)
|
- Microsoft.XboxSpeechToTextOverlay (Might be required for some games, NOTE: This app cannot be reinstalled!)
|
||||||
|
|
||||||
Developer related apps that are not removed by default:
|
HP apps:
|
||||||
- Microsoft.PowerAutomateDesktop*
|
- AD2F1837.HPAIExperienceCenter
|
||||||
- Microsoft.RemoteDesktop*
|
- AD2F1837.HPConnectedMusic
|
||||||
- Windows.DevHome*
|
- AD2F1837.HPConnectedPhotopoweredbySnapfish
|
||||||
|
- AD2F1837.HPDesktopSupportUtilities
|
||||||
* Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details)
|
- AD2F1837.HPEasyClean
|
||||||
|
- AD2F1837.HPFileViewer
|
||||||
|
- AD2F1837.HPJumpStarts
|
||||||
|
- AD2F1837.HPPCHardwareDiagnosticsWindows
|
||||||
|
- AD2F1837.HPPowerManager
|
||||||
|
- AD2F1837.HPPrinterControl
|
||||||
|
- AD2F1837.HPPrivacySettings
|
||||||
|
- AD2F1837.HPQuickDrop
|
||||||
|
- AD2F1837.HPQuickTouch
|
||||||
|
- AD2F1837.HPRegistration
|
||||||
|
- AD2F1837.HPSupportAssistant
|
||||||
|
- AD2F1837.HPSureShieldAI
|
||||||
|
- AD2F1837.HPSystemInformation
|
||||||
|
- AD2F1837.HPWelcome
|
||||||
|
- AD2F1837.HPWorkWell
|
||||||
|
- AD2F1837.myHP
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
BIN
Regfiles/Combine_MMTaskbar_Always.reg
Executable file
BIN
Regfiles/Combine_MMTaskbar_Always.reg
Executable file
Binary file not shown.
BIN
Regfiles/Combine_MMTaskbar_Never.reg
Executable file
BIN
Regfiles/Combine_MMTaskbar_Never.reg
Executable file
Binary file not shown.
BIN
Regfiles/Combine_MMTaskbar_When_Full.reg
Executable file
BIN
Regfiles/Combine_MMTaskbar_When_Full.reg
Executable file
Binary file not shown.
5
Regfiles/Disable_Controller_Game_Bar_Integration.reg
Normal file
5
Regfiles/Disable_Controller_Game_Bar_Integration.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable allow your controller to open Game Bar
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000000
|
||||||
@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
|
|||||||
[HKEY_CURRENT_USER\System\GameConfigStore]
|
[HKEY_CURRENT_USER\System\GameConfigStore]
|
||||||
"GameDVR_Enabled"=dword:00000000
|
"GameDVR_Enabled"=dword:00000000
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
|
||||||
|
"AppCaptureEnabled"=dword:00000000
|
||||||
|
|
||||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
||||||
"AllowGameDVR"=dword:00000000
|
"AllowGameDVR"=dword:00000000
|
||||||
|
|||||||
BIN
Regfiles/MMTaskbarMode_Active.reg
Executable file
BIN
Regfiles/MMTaskbarMode_Active.reg
Executable file
Binary file not shown.
BIN
Regfiles/MMTaskbarMode_All.reg
Executable file
BIN
Regfiles/MMTaskbarMode_All.reg
Executable file
Binary file not shown.
BIN
Regfiles/MMTaskbarMode_Main_Active.reg
Executable file
BIN
Regfiles/MMTaskbarMode_Main_Active.reg
Executable file
Binary file not shown.
BIN
Regfiles/Sysprep/Combine_Taskbar_Always.reg
Normal file
BIN
Regfiles/Sysprep/Combine_Taskbar_Always.reg
Normal file
Binary file not shown.
BIN
Regfiles/Sysprep/Combine_Taskbar_Never.reg
Normal file
BIN
Regfiles/Sysprep/Combine_Taskbar_Never.reg
Normal file
Binary file not shown.
BIN
Regfiles/Sysprep/Combine_Taskbar_When_Full.reg
Normal file
BIN
Regfiles/Sysprep/Combine_Taskbar_When_Full.reg
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Disable allow your controller to open Game Bar
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000000
|
||||||
@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
|
|||||||
[hkey_users\default\System\GameConfigStore]
|
[hkey_users\default\System\GameConfigStore]
|
||||||
"GameDVR_Enabled"=dword:00000000
|
"GameDVR_Enabled"=dword:00000000
|
||||||
|
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
|
||||||
|
"AppCaptureEnabled"=dword:00000000
|
||||||
|
|
||||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
||||||
"AllowGameDVR"=dword:00000000
|
"AllowGameDVR"=dword:00000000
|
||||||
|
|||||||
4
Regfiles/Sysprep/Uninstall_Microsoft_Edge.reg
Normal file
4
Regfiles/Sysprep/Uninstall_Microsoft_Edge.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
|
||||||
|
"UninstallMicrosoftEdge"="cmd.exe /c winget uninstall --accept-source-agreements --disable-interactivity --id Microsoft.Edge"
|
||||||
4
Regfiles/Sysprep/Uninstall_Microsoft_OneDrive.reg
Normal file
4
Regfiles/Sysprep/Uninstall_Microsoft_OneDrive.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[hkey_users\default\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
|
||||||
|
"UninstallMicrosoftOneDrive"="cmd.exe /c winget uninstall --accept-source-agreements --disable-interactivity --id Microsoft.OneDrive"
|
||||||
5
Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg
Normal file
5
Regfiles/Undo/Enable_Controller_Game_Bar_Integration.reg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
; Enable allow your controller to open Game Bar
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\GameBar]
|
||||||
|
"UseNexusForGameBarEnabled"=dword:00000001
|
||||||
@@ -3,5 +3,8 @@ Windows Registry Editor Version 5.00
|
|||||||
[HKEY_CURRENT_USER\System\GameConfigStore]
|
[HKEY_CURRENT_USER\System\GameConfigStore]
|
||||||
"GameDVR_Enabled"=dword:00000001
|
"GameDVR_Enabled"=dword:00000001
|
||||||
|
|
||||||
|
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR]
|
||||||
|
"AppCaptureEnabled"=dword:00000001
|
||||||
|
|
||||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GameDVR]
|
||||||
"AllowGameDVR"=dword:00000001
|
"AllowGameDVR"=dword:00000001
|
||||||
179
Win11Debloat.ps1
Normal file → Executable file
179
Win11Debloat.ps1
Normal file → Executable file
@@ -15,11 +15,11 @@ param (
|
|||||||
[switch]$RemoveAppsCustom,
|
[switch]$RemoveAppsCustom,
|
||||||
[switch]$RemoveGamingApps,
|
[switch]$RemoveGamingApps,
|
||||||
[switch]$RemoveCommApps,
|
[switch]$RemoveCommApps,
|
||||||
[switch]$RemoveDevApps,
|
|
||||||
[switch]$RemoveHPApps,
|
[switch]$RemoveHPApps,
|
||||||
[switch]$RemoveW11Outlook,
|
[switch]$RemoveW11Outlook,
|
||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
|
[switch]$DisableControllerOverlay,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
[switch]$DisableFastStartup,
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableModernStandbyNetworking,
|
[switch]$DisableModernStandbyNetworking,
|
||||||
@@ -38,6 +38,8 @@ param (
|
|||||||
[switch]$DisableAnimations,
|
[switch]$DisableAnimations,
|
||||||
[switch]$TaskbarAlignLeft,
|
[switch]$TaskbarAlignLeft,
|
||||||
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
|
[switch]$CombineTaskbarAlways, [switch]$CombineTaskbarWhenFull, [switch]$CombineTaskbarNever,
|
||||||
|
[switch]$CombineMMTaskbarAlways, [switch]$CombineMMTaskbarWhenFull, [switch]$CombineMMTaskbarNever,
|
||||||
|
[switch]$MMTaskbarModeAll, [switch]$MMTaskbarModeMainActive, [switch]$MMTaskbarModeActive,
|
||||||
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
[switch]$HideSearchTb, [switch]$ShowSearchIconTb, [switch]$ShowSearchLabelTb, [switch]$ShowSearchBoxTb,
|
||||||
[switch]$HideTaskview,
|
[switch]$HideTaskview,
|
||||||
[switch]$DisableStartRecommended,
|
[switch]$DisableStartRecommended,
|
||||||
@@ -65,6 +67,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
[switch]$DisableMusic, [switch]$HideMusic,
|
[switch]$DisableMusic, [switch]$HideMusic,
|
||||||
@@ -380,8 +383,18 @@ function RemoveApps {
|
|||||||
Write-Host "Error: WinGet is either not installed or is outdated, $app could not be removed" -ForegroundColor Red
|
Write-Host "Error: WinGet is either not installed or is outdated, $app could not be removed" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# Uninstall app via winget
|
$appName = $app -replace '\.', '_'
|
||||||
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
|
|
||||||
|
# Uninstall app via winget, or create a scheduled task to uninstall it later
|
||||||
|
if ($script:Params.ContainsKey("User")) {
|
||||||
|
RegImport "Adding scheduled task to uninstall $app for user $(GetUserName)..." "Uninstall_$($appName).reg"
|
||||||
|
}
|
||||||
|
elseif ($script:Params.ContainsKey("Sysprep")) {
|
||||||
|
RegImport "Adding scheduled task to uninstall $app after new users log in..." "Uninstall_$($appName).reg"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Strip-Progress -ScriptBlock { winget uninstall --accept-source-agreements --disable-interactivity --id $app } | Tee-Object -Variable wingetOutput
|
||||||
|
}
|
||||||
|
|
||||||
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) {
|
If (($app -eq "Microsoft.Edge") -and (Select-String -InputObject $wingetOutput -Pattern "Uninstall failed with exit code")) {
|
||||||
Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red
|
Write-Host "Unable to uninstall Microsoft Edge via Winget" -ForegroundColor Red
|
||||||
@@ -582,18 +595,23 @@ function GetUserDirectory {
|
|||||||
$exitIfPathNotFound = $true
|
$exitIfPathNotFound = $true
|
||||||
)
|
)
|
||||||
|
|
||||||
$userDirectoryExists = Test-Path "$env:SystemDrive\Users\$userName"
|
try {
|
||||||
$userPath = "$env:SystemDrive\Users\$userName\$fileName"
|
$userDirectoryExists = Test-Path "$env:SystemDrive\Users\$userName"
|
||||||
|
$userPath = "$env:SystemDrive\Users\$userName\$fileName"
|
||||||
|
|
||||||
if ((Test-Path $userPath) -or ($userDirectoryExists -and (-not $exitIfPathNotFound))) {
|
if ((Test-Path $userPath) -or ($userDirectoryExists -and (-not $exitIfPathNotFound))) {
|
||||||
return $userPath
|
return $userPath
|
||||||
}
|
}
|
||||||
|
|
||||||
$userDirectoryExists = Test-Path $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '$'), "\$userName"
|
$userDirectoryExists = Test-Path ($env:USERPROFILE -Replace ('\\' + $env:USERNAME + '$'), "\$userName")
|
||||||
$userPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '$'), "\$userName\$fileName"
|
$userPath = $env:USERPROFILE -Replace ('\\' + $env:USERNAME + '$'), "\$userName\$fileName"
|
||||||
|
|
||||||
if ((Test-Path $userPath) -or ($userDirectoryExists -and (-not $exitIfPathNotFound))) {
|
if ((Test-Path $userPath) -or ($userDirectoryExists -and (-not $exitIfPathNotFound))) {
|
||||||
return $userPath
|
return $userPath
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
Write-Host "Error: Something went wrong when trying to find the user directory path for user $userName. Please ensure the user exists on this system." -ForegroundColor Red
|
||||||
|
AwaitKeyToExit
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Error: Unable to find user directory path for user $userName" -ForegroundColor Red
|
Write-Host "Error: Unable to find user directory path for user $userName" -ForegroundColor Red
|
||||||
@@ -635,7 +653,7 @@ function RegImport {
|
|||||||
|
|
||||||
# Restart the Windows Explorer process
|
# Restart the Windows Explorer process
|
||||||
function RestartExplorer {
|
function RestartExplorer {
|
||||||
if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User")) {
|
if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User") -or $script:Params.ContainsKey("NoRestartExplorer")) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -715,7 +733,7 @@ function ReplaceStartMenu {
|
|||||||
|
|
||||||
# Change path to correct user if a user was specified
|
# Change path to correct user if a user was specified
|
||||||
if ($script:Params.ContainsKey("User")) {
|
if ($script:Params.ContainsKey("User")) {
|
||||||
$startMenuBinFile = GetUserDirectory -userName "$(GetUserName)" -fileName "AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin"
|
$startMenuBinFile = GetUserDirectory -userName "$(GetUserName)" -fileName "AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start2.bin" -exitIfPathNotFound $false
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if template bin file exists, return early if it doesn't
|
# Check if template bin file exists, return early if it doesn't
|
||||||
@@ -731,16 +749,15 @@ function ReplaceStartMenu {
|
|||||||
|
|
||||||
$userName = [regex]::Match($startMenuBinFile, '(?:Users\\)([^\\]+)(?:\\AppData)').Groups[1].Value
|
$userName = [regex]::Match($startMenuBinFile, '(?:Users\\)([^\\]+)(?:\\AppData)').Groups[1].Value
|
||||||
|
|
||||||
# Check if bin file exists, return early if it doesn't
|
|
||||||
if (-not (Test-Path $startMenuBinFile)) {
|
|
||||||
Write-Host "Error: Unable to replace start menu for user $userName, original start2.bin file not found" -ForegroundColor Red
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
$backupBinFile = $startMenuBinFile + ".bak"
|
$backupBinFile = $startMenuBinFile + ".bak"
|
||||||
|
|
||||||
# Backup current start menu file
|
if (Test-Path $startMenuBinFile) {
|
||||||
Move-Item -Path $startMenuBinFile -Destination $backupBinFile -Force
|
# Backup current start menu file
|
||||||
|
Move-Item -Path $startMenuBinFile -Destination $backupBinFile -Force
|
||||||
|
} else {
|
||||||
|
Write-Host "Warning: Unable to find original start2.bin file for user $userName. No backup was created for this user!" -ForegroundColor Yellow
|
||||||
|
New-Item -ItemType File -Path $startMenuBinFile -Force
|
||||||
|
}
|
||||||
|
|
||||||
# Copy template file
|
# Copy template file
|
||||||
Copy-Item -Path $startMenuTemplate -Destination $startMenuBinFile -Force
|
Copy-Item -Path $startMenuTemplate -Destination $startMenuBinFile -Force
|
||||||
@@ -826,7 +843,8 @@ function PrintFromFile {
|
|||||||
|
|
||||||
function PrintAppsList {
|
function PrintAppsList {
|
||||||
param (
|
param (
|
||||||
$path
|
$path,
|
||||||
|
$printCount = $false
|
||||||
)
|
)
|
||||||
|
|
||||||
if (-not (Test-Path $path)) {
|
if (-not (Test-Path $path)) {
|
||||||
@@ -834,6 +852,11 @@ function PrintAppsList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$appsList = ReadAppslistFromFile $path
|
$appsList = ReadAppslistFromFile $path
|
||||||
|
|
||||||
|
if ($printCount) {
|
||||||
|
Write-Output "- Remove $($appsList.Count) apps:"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host $appsList -ForegroundColor DarkGray
|
Write-Host $appsList -ForegroundColor DarkGray
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -936,7 +959,7 @@ 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 apps" -ForegroundColor Yellow
|
Write-Host " (1) Only remove the default selection of apps" -ForegroundColor Yellow
|
||||||
Write-Host " (2) Remove the default selection of apps, as well as mail & calendar apps, developer apps and gaming apps" -ForegroundColor Yellow
|
Write-Host " (2) Remove the default selection of apps, as well as mail & calendar apps and gaming related apps" -ForegroundColor Yellow
|
||||||
Write-Host " (3) Manually select which apps to remove" -ForegroundColor Yellow
|
Write-Host " (3) Manually select which apps to remove" -ForegroundColor Yellow
|
||||||
$RemoveAppsInput = Read-Host "Do you want to remove any apps? Apps will be removed for all users (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)"
|
||||||
|
|
||||||
@@ -966,9 +989,9 @@ function DisplayCustomModeOptions {
|
|||||||
AddParameter 'RemoveApps' 'Remove the default selection of apps'
|
AddParameter 'RemoveApps' 'Remove the default selection of apps'
|
||||||
AddParameter 'RemoveCommApps' 'Remove the Mail, Calendar, and People apps'
|
AddParameter 'RemoveCommApps' 'Remove the Mail, Calendar, and People apps'
|
||||||
AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app'
|
AddParameter 'RemoveW11Outlook' 'Remove the new Outlook for Windows app'
|
||||||
AddParameter 'RemoveDevApps' 'Remove developer-related apps'
|
|
||||||
AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar'
|
AddParameter 'RemoveGamingApps' 'Remove the Xbox App and Xbox Gamebar'
|
||||||
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
||||||
|
AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller'
|
||||||
}
|
}
|
||||||
'3' {
|
'3' {
|
||||||
Write-Output "You have selected $($script:SelectedApps.Count) apps for removal"
|
Write-Output "You have selected $($script:SelectedApps.Count) apps for removal"
|
||||||
@@ -977,8 +1000,9 @@ function DisplayCustomModeOptions {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable Xbox game/screen recording? This also stops gaming overlay popups (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable Game Bar integration for controller and game/screen recording? This also stops msgaming overlay popups (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
AddParameter 'DisableDVR' 'Disable Xbox game/screen recording'
|
||||||
|
AddParameter 'DisableControllerOverlay' 'Disable opening the Xbox Game Bar with a controller'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1152,10 +1176,13 @@ function DisplayCustomModeOptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
# Don't show option for users running build 26200 and above, as this setting was removed in this build
|
||||||
|
if ($WinVersion -lt 26200) {
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Disable the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Disable the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableStartRecommended' 'Disable the recommended section in the start menu.'
|
AddParameter 'DisableStartRecommended' 'Disable the recommended section in the start menu.'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -1192,13 +1219,41 @@ function DisplayCustomModeOptions {
|
|||||||
# Select correct taskbar goup option based on user input
|
# Select correct taskbar goup option based on user input
|
||||||
switch ($TbCombineTaskbar) {
|
switch ($TbCombineTaskbar) {
|
||||||
'1' {
|
'1' {
|
||||||
AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels'
|
AddParameter 'CombineTaskbarAlways' 'Always combine taskbar buttons and hide labels for the main display'
|
||||||
|
AddParameter 'CombineMMTaskbarAlways' 'Always combine taskbar buttons and hide labels for secondary displays'
|
||||||
}
|
}
|
||||||
'2' {
|
'2' {
|
||||||
AddParameter 'CombineTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full'
|
AddParameter 'CombineTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full for the main display'
|
||||||
|
AddParameter 'CombineMMTaskbarWhenFull' 'Combine taskbar buttons and hide labels when taskbar is full for secondary displays'
|
||||||
}
|
}
|
||||||
'3' {
|
'3' {
|
||||||
AddParameter 'CombineTaskbarNever' 'Never combine taskbar buttons and show labels'
|
AddParameter 'CombineTaskbarNever' 'Never combine taskbar buttons and show labels for the main display'
|
||||||
|
AddParameter 'CombineMMTaskbarNever' 'Never combine taskbar buttons and show labels for secondary displays'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Show options for changing on what taskbar(s) app icons are shown, only continue on valid input
|
||||||
|
Do {
|
||||||
|
Write-Output ""
|
||||||
|
Write-Host " Options:" -ForegroundColor Yellow
|
||||||
|
Write-Host " (n) No change" -ForegroundColor Yellow
|
||||||
|
Write-Host " (1) Show app icons on all taskbars" -ForegroundColor Yellow
|
||||||
|
Write-Host " (2) Show app icons on main taskbar and on taskbar where the windows is open" -ForegroundColor Yellow
|
||||||
|
Write-Host " (3) Show app icons only on taskbar where the window is open" -ForegroundColor Yellow
|
||||||
|
$TbCombineTaskbar = Read-Host " Change how to show app icons on the taskbar when using multiple monitors? (n/1/2/3)"
|
||||||
|
}
|
||||||
|
while ($TbCombineTaskbar -ne 'n' -and $TbCombineTaskbar -ne '0' -and $TbCombineTaskbar -ne '1' -and $TbCombineTaskbar -ne '2' -and $TbCombineTaskbar -ne '3')
|
||||||
|
|
||||||
|
# Select correct taskbar goup option based on user input
|
||||||
|
switch ($TbCombineTaskbar) {
|
||||||
|
'1' {
|
||||||
|
AddParameter 'MMTaskbarModeAll' 'Show app icons on all taskbars'
|
||||||
|
}
|
||||||
|
'2' {
|
||||||
|
AddParameter 'MMTaskbarModeMainActive' 'Show app icons on main taskbar and on taskbar where the windows is open'
|
||||||
|
}
|
||||||
|
'3' {
|
||||||
|
AddParameter 'MMTaskbarModeActive' 'Show app icons only on taskbar where the window is open'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1532,6 +1587,9 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
|||||||
if ((-not $RunDefaults) -and (-not $RunDefaultsLite)) {
|
if ((-not $RunDefaults) -and (-not $RunDefaultsLite)) {
|
||||||
PrintHeader 'Default Mode'
|
PrintHeader 'Default Mode'
|
||||||
|
|
||||||
|
Write-Host "Please note: The default selection of apps includes Microsoft Teams, Spotify, Sticky Notes and more. Select option 2 to verify and change what apps are removed by the script." -ForegroundColor DarkGray
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
Do {
|
Do {
|
||||||
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
|
||||||
@@ -1572,7 +1630,7 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
|||||||
PrintAppsList "$PSScriptRoot/Appslist.txt"
|
PrintAppsList "$PSScriptRoot/Appslist.txt"
|
||||||
}
|
}
|
||||||
'2' {
|
'2' {
|
||||||
AddParameter 'RemoveAppsCustom' 'Remove $($script:SelectedApps.Count) apps:' $false
|
AddParameter 'RemoveAppsCustom' "Remove $($script:SelectedApps.Count) apps:" $false
|
||||||
PrintAppsList "$PSScriptRoot/CustomAppsList"
|
PrintAppsList "$PSScriptRoot/CustomAppsList"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1656,11 +1714,16 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa
|
|||||||
$parameterName = $line.Substring(0, $line.IndexOf('#'))
|
$parameterName = $line.Substring(0, $line.IndexOf('#'))
|
||||||
|
|
||||||
# Print parameter description and add parameter to Params list
|
# Print parameter description and add parameter to Params list
|
||||||
if ($parameterName -eq "RemoveAppsCustom") {
|
switch ($parameterName) {
|
||||||
PrintAppsList "$PSScriptRoot/CustomAppsList"
|
'RemoveApps' {
|
||||||
}
|
PrintAppsList "$PSScriptRoot/Appslist.txt" $true
|
||||||
else {
|
}
|
||||||
Write-Output $line.Substring(($line.IndexOf('#') + 1), ($line.Length - $line.IndexOf('#') - 1))
|
'RemoveAppsCustom' {
|
||||||
|
PrintAppsList "$PSScriptRoot/CustomAppsList" $true
|
||||||
|
}
|
||||||
|
default {
|
||||||
|
Write-Output $line.Substring(($line.IndexOf('#') + 1), ($line.Length - $line.IndexOf('#') - 1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not $script:Params.ContainsKey($parameterName)) {
|
if (-not $script:Params.ContainsKey($parameterName)) {
|
||||||
@@ -1728,12 +1791,6 @@ switch ($script:Params.Keys) {
|
|||||||
RemoveApps $appsList
|
RemoveApps $appsList
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'RemoveDevApps' {
|
|
||||||
$appsList = 'Microsoft.PowerAutomateDesktop', 'Microsoft.RemoteDesktop', 'Windows.DevHome'
|
|
||||||
Write-Output "> Removing developer-related related apps..."
|
|
||||||
RemoveApps $appsList
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'RemoveGamingApps' {
|
'RemoveGamingApps' {
|
||||||
$appsList = 'Microsoft.GamingApp', 'Microsoft.XboxGameOverlay', 'Microsoft.XboxGamingOverlay'
|
$appsList = 'Microsoft.GamingApp', 'Microsoft.XboxGameOverlay', 'Microsoft.XboxGamingOverlay'
|
||||||
Write-Output "> Removing gaming related apps..."
|
Write-Output "> Removing gaming related apps..."
|
||||||
@@ -1754,6 +1811,10 @@ switch ($script:Params.Keys) {
|
|||||||
RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg"
|
RegImport "> Disabling Xbox game/screen recording..." "Disable_DVR.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'DisableControllerOverlay' {
|
||||||
|
RegImport "> Disabling the option of opening the Xbox Game Bar with a controller..." "Disable_Controller_Game_Bar_Integration.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'DisableTelemetry' {
|
'DisableTelemetry' {
|
||||||
RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg"
|
RegImport "> Disabling telemetry, diagnostic data, activity history, app-launch tracking and targeted ads..." "Disable_Telemetry.reg"
|
||||||
continue
|
continue
|
||||||
@@ -1883,15 +1944,39 @@ switch ($script:Params.Keys) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'CombineTaskbarAlways' {
|
'CombineTaskbarAlways' {
|
||||||
RegImport "> Setting the taskbar to always combine buttons and hide labels..." "Combine_Taskbar_Never.reg"
|
RegImport "> Setting the taskbar on the main display to always combine buttons and hide labels..." "Combine_Taskbar_Always.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'CombineTaskbarWhenFull' {
|
'CombineTaskbarWhenFull' {
|
||||||
RegImport "> Setting the taskbar to only combine buttons and hide labels when the taskbar is full..." "Combine_Taskbar_When_Full.reg"
|
RegImport "> Setting the taskbar on the main display to only combine buttons and hide labels when the taskbar is full..." "Combine_Taskbar_When_Full.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'CombineTaskbarNever' {
|
'CombineTaskbarNever' {
|
||||||
RegImport "> Setting the taskbar to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg"
|
RegImport "> Setting the taskbar on the main display to never combine buttons or hide labels..." "Combine_Taskbar_Never.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'CombineMMTaskbarAlways' {
|
||||||
|
RegImport "> Setting the taskbar on secondary displays to always combine buttons and hide labels..." "Combine_MMTaskbar_Always.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'CombineMMTaskbarWhenFull' {
|
||||||
|
RegImport "> Setting the taskbar on secondary displays to only combine buttons and hide labels when the taskbar is full..." "Combine_MMTaskbar_When_Full.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'CombineMMTaskbarNever' {
|
||||||
|
RegImport "> Setting the taskbar on secondary displays to never combine buttons or hide labels..." "Combine_MMTaskbar_Never.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'MMTaskbarModeAll' {
|
||||||
|
RegImport "> Setting the taskbar to only show app icons on main taskbar..." "MMTaskbarMode_All.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'MMTaskbarModeMainActive' {
|
||||||
|
RegImport "> Setting the taskbar to show app icons on all taskbars..." "MMTaskbarMode_Main_Active.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'MMTaskbarModeActive' {
|
||||||
|
RegImport "> Setting the taskbar to only show app icons on the taskbar where the window is open..." "MMTaskbarMode_Active.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
'HideSearchTb' {
|
'HideSearchTb' {
|
||||||
|
|||||||
Reference in New Issue
Block a user