Parcourir la source

Fixed typo in CloudStore path

string in $CloudStore has a typo that lead the check to always false
jtmy il y a 6 ans
Parent
commit
9c0504ad7e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Windows10Debloater.ps1

+ 1 - 1
Windows10Debloater.ps1

@@ -303,7 +303,7 @@ Function Protect-Privacy {
 
     
     Write-Output "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