Same Fix as Windows10Debloater.ps1 for Cloudstore

It allows to delete cloudstore without confirm needed
This commit is contained in:
John Neijzen 2020-03-15 08:41:11 +08:00 committed by GitHub
parent 02963b6844
commit 12e321e5fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,10 +174,10 @@ 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
Remove-Item $CloudStore -Recurse -Force
Start-Process Explorer.exe -Wait
}