Parcourir la source

Same Cloudstore fixes

John Neijzen il y a 5 ans
Parent
commit
1d5137e878
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      Windows10DebloaterGUI.ps1

+ 3 - 2
Windows10DebloaterGUI.ps1

@@ -79,6 +79,7 @@ $global:Bloatware = @(
     "Duolingo-LearnLanguagesforFree"
     "PandoraMediaInc"
     "CandyCrush"
+    "BubbleWitch3Saga"
     "Wunderlist"
     "Flipboard"
     "Twitter"
@@ -696,10 +697,10 @@ $RemoveAllBloatware.Add_Click( {
             
             
             Write-Host "Removing CloudStore from registry if it exists"
-            $CloudStore = 'HKCUSoftware\Microsoft\Windows\CurrentVersion\CloudStore'
+            $CloudStore = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore'
             If (Test-Path $CloudStore) {
                 Stop-Process Explorer.exe -Force
-                Remove-Item $CloudStore
+                Remove-Item $CloudStore -Recurse -Force
                 Start-Process Explorer.exe -Wait
             }