浏览代码

Merge pull request #28 from abulgatz/master

Run Remove-AppxPackage for current user
Richard Newton 7 年之前
父节点
当前提交
f23435dce7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Windows10Debloater.ps1

+ 1 - 0
Windows10Debloater.ps1

@@ -32,6 +32,7 @@ Function Start-Debloat {
     #Credit to /u/GavinEke for a modified version of my whitelist code
     [regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider'
     Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage
+    Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage
     Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online
 }