Prechádzať zdrojové kódy

Fixed typo in CloudStore path

string in $CloudStore has a typo that lead the check to always false
jtmy 6 rokov pred
rodič
commit
9c0504ad7e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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"
     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) {
     If (Test-Path $CloudStore) {
         Stop-Process Explorer.exe -Force
         Stop-Process Explorer.exe -Force
         Remove-Item $CloudStore
         Remove-Item $CloudStore