Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit d8979dc

Browse files
authored
FIX #240 and #259
The explorer process could not be killed, because powershell cannot convert the "Explorer.exe" value of type "System.String" to type "System.Diagnostics.Process". Description and solution in #240 . If issues still occur we could try the solution proposed in #259
1 parent 467f71e commit d8979dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Windows10SysPrepDebloater.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Function Protect-Privacy {
176176
Write-Output "Removing CloudStore from registry if it exists"
177177
$CloudStore = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore'
178178
If (Test-Path $CloudStore) {
179-
Stop-Process Explorer.exe -Force
179+
Stop-Process -Name explorer -Force
180180
Remove-Item $CloudStore -Recurse -Force
181181
Start-Process Explorer.exe -Wait
182182
}

0 commit comments

Comments
 (0)