Bläddra i källkod

Merge pull request #264 from mcsitter/patch-1

FIX #240 and #259
Richard Newton 4 år sedan
förälder
incheckning
d51cb458c4
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Windows10SysPrepDebloater.ps1

+ 1 - 1
Windows10SysPrepDebloater.ps1

@@ -176,7 +176,7 @@ Function Protect-Privacy {
      Write-Output "Removing CloudStore from registry if it exists"
      Write-Output "Removing CloudStore from registry if it exists"
      $CloudStore = 'HKCU:\Software\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 -Name explorer -Force
      Remove-Item $CloudStore -Recurse -Force
      Remove-Item $CloudStore -Recurse -Force
      Start-Process Explorer.exe -Wait
      Start-Process Explorer.exe -Wait
     }
     }