From 0356a5e2eb086bcc0e9b5922898dcef4da42fce2 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Tue, 4 Aug 2015 20:14:17 +0200 Subject: [PATCH] fix remove-onedrive --- scripts/remove-onedrive.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/remove-onedrive.ps1 b/scripts/remove-onedrive.ps1 index 2ebd8a5..260895e 100644 --- a/scripts/remove-onedrive.ps1 +++ b/scripts/remove-onedrive.ps1 @@ -2,7 +2,8 @@ # This script will remove and disable OneDrive integration. echo "Kill OneDrive process" -kill "OneDrive.exe" +taskkill.exe /F /IM "OneDrive.exe" +taskkill.exe /F /IM "explorer.exe" echo "Remove OneDrive" if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") { @@ -28,4 +29,7 @@ Windows Registry Editor Version 5.00 $regfile = "$env:windir\Temp\registry.reg" $reg | Out-File $regfile regedit /s $regfile -rm $regfile \ No newline at end of file +rm $regfile + +echo "Restarting explorer" +start "explorer.exe" \ No newline at end of file