Update-WPFTweaksDeBloat (#3709)

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Update tweaks.json

* Added comments to InvokeScript of WPFTweaksDeBloat

* Update tweaks.json

* Update tweaks.json
This commit is contained in:
Gabi 2025-12-01 21:41:28 +02:00 committed by GitHub
parent ce77be324b
commit 8b3e1280df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2321,6 +2321,7 @@
"Microsoft.ZuneMusic", "Microsoft.ZuneMusic",
"Microsoft.ZuneVideo", "Microsoft.ZuneVideo",
"Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftOfficeHub",
"MsTeams",
"*EclipseManager*", "*EclipseManager*",
"*ActiproSoftwareLLC*", "*ActiproSoftwareLLC*",
"*AdobeSystemsIncorporated.AdobePhotoshopExpress*", "*AdobeSystemsIncorporated.AdobePhotoshopExpress*",
@ -2350,38 +2351,15 @@
], ],
"InvokeScript": [ "InvokeScript": [
" "
$TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams') $TeamsPath = \"$Env:LocalAppData\\Microsoft\\Teams\\Update.exe\"
$TeamsUpdateExePath = [System.IO.Path]::Combine($TeamsPath, 'Update.exe')
Write-Host \"Stopping Teams process...\" if (Test-Path $TeamsPath) {
Stop-Process -Name \"*teams*\" -Force -ErrorAction SilentlyContinue Write-Host \"Uninstalling Teams\"
Start-Process $TeamsPath -ArgumentList -uninstall -wait
Write-Host \"Uninstalling Teams from AppData\\Microsoft\\Teams\"
if ([System.IO.File]::Exists($TeamsUpdateExePath)) {
# Uninstall app
$proc = Start-Process $TeamsUpdateExePath \"-uninstall -s\" -PassThru
$proc.WaitForExit()
}
Write-Host \"Removing Teams AppxPackage...\"
Get-AppxPackage \"*Teams*\" | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppxPackage \"*Teams*\" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Write-Host \"Deleting Teams directory\" Write-Host \"Deleting Teams directory\"
if ([System.IO.Directory]::Exists($TeamsPath)) { Remove-Item $TeamsPath -Recurse -Force
Remove-Item $TeamsPath -Force -Recurse -ErrorAction SilentlyContinue }
}
Write-Host \"Deleting Teams uninstall registry key\"
# Uninstall from Uninstall registry key UninstallString
$us = (Get-ChildItem -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like '*Teams*'}).UninstallString
if ($us.Length -gt 0) {
$us = ($us.Replace('/I', '/uninstall ') + ' /quiet').Replace(' ', ' ')
$FilePath = ($us.Substring(0, $us.IndexOf('.exe') + 4).Trim())
$ProcessArgs = ($us.Substring($us.IndexOf('.exe') + 5).Trim().replace(' ', ' '))
$proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru
$proc.WaitForExit()
}
" "
], ],
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/debloat" "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/debloat"