mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Added check to prevent issue with restarting explorer process (#67)
Added new MS Teams client to supported apps list
This commit is contained in:
@@ -36,7 +36,8 @@ Microsoft.WindowsSoundRecorder
|
|||||||
Microsoft.XboxApp # Old Xbox Console Companion App, no longer supported
|
Microsoft.XboxApp # Old Xbox Console Companion App, no longer supported
|
||||||
Microsoft.ZuneVideo
|
Microsoft.ZuneVideo
|
||||||
MicrosoftCorporationII.MicrosoftFamily # Family Safety App
|
MicrosoftCorporationII.MicrosoftFamily # Family Safety App
|
||||||
MicrosoftTeams # Only removes the personal version (MS Store), does not remove business/enterprise version of teams
|
MicrosoftTeams # Old MS Teams personal (MS Store)
|
||||||
|
MSTeams # New MS Teams app
|
||||||
|
|
||||||
ACGMediaPlayer
|
ACGMediaPlayer
|
||||||
ActiproSoftwareLLC
|
ActiproSoftwareLLC
|
||||||
|
|||||||
@@ -108,7 +108,8 @@ The default mode applies the changes that are recommended for most users, expand
|
|||||||
- Microsoft.XboxApp (Old Xbox Console Companion App, no longer supported)
|
- Microsoft.XboxApp (Old Xbox Console Companion App, no longer supported)
|
||||||
- Microsoft.ZuneVideo
|
- Microsoft.ZuneVideo
|
||||||
- MicrosoftCorporationII.MicrosoftFamily (Microsoft Family Safety)
|
- MicrosoftCorporationII.MicrosoftFamily (Microsoft Family Safety)
|
||||||
- MicrosoftTeams (Personal version only, does not remove MS teams for business/enterprise)
|
- MicrosoftTeams (Old personal version of MS Teams from the MS Store)
|
||||||
|
- MSTeams (New MS Teams app)
|
||||||
|
|
||||||
Third party bloat:
|
Third party bloat:
|
||||||
- ACGMediaPlayer
|
- ACGMediaPlayer
|
||||||
|
|||||||
@@ -371,7 +371,11 @@ function RegImport {
|
|||||||
function RestartExplorer {
|
function RestartExplorer {
|
||||||
Write-Output "> Restarting Windows explorer to apply all changes. Note: This may cause some flickering."
|
Write-Output "> Restarting Windows explorer to apply all changes. Note: This may cause some flickering."
|
||||||
|
|
||||||
Start-Sleep 0.3
|
# Only restart if the powershell process matches the OS architecture
|
||||||
|
# Restarting explorer from a 32bit Powershell window will fail on a 64bit OS
|
||||||
|
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem)
|
||||||
|
{
|
||||||
|
Start-Sleep 0.1
|
||||||
|
|
||||||
taskkill /f /im explorer.exe
|
taskkill /f /im explorer.exe
|
||||||
|
|
||||||
@@ -381,6 +385,10 @@ function RestartExplorer {
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Write-Warning "Unable to restart Windows Explorer, please manually restart your PC to apply all changes."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Clear all pinned apps from the start menu.
|
# Clear all pinned apps from the start menu.
|
||||||
@@ -546,7 +554,7 @@ foreach ($Param in $SPParams) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Remove SavedSettings file if it exists and is empty
|
# Remove SavedSettings file if it exists and is empty
|
||||||
if (Test-Path "$PSScriptRoot/SavedSettings" -and [String]::IsNullOrWhiteSpace((Get-content "$PSScriptRoot/SavedSettings"))) {
|
if ((Test-Path "$PSScriptRoot/SavedSettings") -and ([String]::IsNullOrWhiteSpace((Get-content "$PSScriptRoot/SavedSettings")))) {
|
||||||
Remove-Item -Path "$PSScriptRoot/SavedSettings" -recurse
|
Remove-Item -Path "$PSScriptRoot/SavedSettings" -recurse
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user