From 559715eff923a5fc738972d20e68b43ae9a0e508 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 22 Jan 2023 15:20:08 +0100 Subject: [PATCH] fucking onedrive is a pest --- scripts/uninstall-onedrive.cmd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/uninstall-onedrive.cmd b/scripts/uninstall-onedrive.cmd index 8da2265..1ba73eb 100644 --- a/scripts/uninstall-onedrive.cmd +++ b/scripts/uninstall-onedrive.cmd @@ -14,7 +14,6 @@ echo KILLING all OneDrive instances ... taskkill /f /im OneDrive.exe > NUL 2>&1 echo UNINSTALLING OneDrive ... -rem %OneDrive% /uninstall 2>nul %OneDrive% /uninstall echo sleep 5 seconds ... @@ -38,9 +37,8 @@ powershell -Command "Get-ScheduledTask | Where-Object {$_.Taskname -match 'OneDr echo KILLING all OneDrive SETUP instances ... taskkill /f /im OneDriveSetup.exe > NUL 2>&1 -echo removing OneDrive setup exe ... -icacls %OneDrive% /grant Users:F 2>nul -del /F %OneDrive% 2>nul +echo removing OneDrive setup exe and dll ... +nsudo -U:T -P:E cmd.exe /C del /F /Q "%SYSTEMROOT%\SysWOW64\*onedrive*" 2>nul echo ####### %0 #######