From 12e321e5fea9426a3cc97ee2e721737fef7a5ead Mon Sep 17 00:00:00 2001 From: John Neijzen Date: Sun, 15 Mar 2020 08:41:11 +0800 Subject: [PATCH] Same Fix as Windows10Debloater.ps1 for Cloudstore It allows to delete cloudstore without confirm needed --- Windows10SysPrepDebloater.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows10SysPrepDebloater.ps1 b/Windows10SysPrepDebloater.ps1 index 3072a5e..df9d026 100644 --- a/Windows10SysPrepDebloater.ps1 +++ b/Windows10SysPrepDebloater.ps1 @@ -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 }