mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-24 11:45:29 +00:00
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
This commit is contained in:
parent
467f71ef0b
commit
d8979dc7e2
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user