Skip to content

Commit

Permalink
增强 卸载小组件
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Sep 22, 2024
1 parent aefb228 commit f1ce802
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osc/apifiles/uninstallAppx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Get-AppxPackage *MicrosoftTeams* -AllUsers | Remove-AppxPackage
Get-AppxPackage *MSTeams* -AllUsers | Remove-AppxPackage
Get-AppxPackage *Microsoft.OutlookForWindows* -AllUsers | Remove-AppxPackage
Get-AppxPackage *MicrosoftWindows.Client.WebExperience* -AllUsers | Remove-AppxPackage
Get-AppxPackage *Microsoft.WidgetsPlatformRuntime* -AllUsers | Remove-AppxPackage
# Get-AppxPackage *Microsoft.BingWeather* -AllUsers | Remove-AppxPackage
# Get-AppxPackage *Microsoft.GamingApp* -AllUsers | Remove-AppxPackage
# Get-AppxPackage *Microsoft.MicrosoftOfficeHub* -AllUsers | Remove-AppxPackage
Expand Down Expand Up @@ -66,6 +67,7 @@ Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like "*Micros
Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like "*MicrosoftCorporationII.MicrosoftFamily*"} | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like "*Microsoft.MSTeams*"} | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like "*MicrosoftWindows.Client.WebExperience*"} | Remove-AppxProvisionedPackage -Online
Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like "*Microsoft.WidgetsPlatformRuntime*"} | Remove-AppxProvisionedPackage -Online

# Import registry to disable Microsoft PC Manager
reg.exe import .\mspcmgr.reg /reg:32

0 comments on commit f1ce802

Please sign in to comment.