From c4e13cb2f2671e62fe2597e41e68478c98ebf176 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 22 Jul 2021 09:28:23 +1000 Subject: [PATCH] fix #6 --- library/DebloatFunctions.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/DebloatFunctions.psm1 b/library/DebloatFunctions.psm1 index d454e2c..c43a1c6 100644 --- a/library/DebloatFunctions.psm1 +++ b/library/DebloatFunctions.psm1 @@ -259,7 +259,7 @@ function RemoveOneDrive { Get-ScheduledTask -TaskPath '\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false Write-Output "Restarting explorer" - Start-Process "explorer.exe" + cmd.exe /c 'start "" "%windir%\explorer.exe"' Write-Output "Waiting for explorer to complete loading" Start-Sleep 10