fucking onedrive is a pest

This commit is contained in:
Michael H.G. Schmidt 2023-01-22 15:20:08 +01:00
parent 363c327bfd
commit 559715eff9

View File

@ -14,7 +14,6 @@ echo KILLING all OneDrive instances ...
taskkill /f /im OneDrive.exe > NUL 2>&1 taskkill /f /im OneDrive.exe > NUL 2>&1
echo UNINSTALLING OneDrive ... echo UNINSTALLING OneDrive ...
rem %OneDrive% /uninstall 2>nul
%OneDrive% /uninstall %OneDrive% /uninstall
echo sleep 5 seconds ... echo sleep 5 seconds ...
@ -38,9 +37,8 @@ powershell -Command "Get-ScheduledTask | Where-Object {$_.Taskname -match 'OneDr
echo KILLING all OneDrive SETUP instances ... echo KILLING all OneDrive SETUP instances ...
taskkill /f /im OneDriveSetup.exe > NUL 2>&1 taskkill /f /im OneDriveSetup.exe > NUL 2>&1
echo removing OneDrive setup exe ... echo removing OneDrive setup exe and dll ...
icacls %OneDrive% /grant Users:F 2>nul nsudo -U:T -P:E cmd.exe /C del /F /Q "%SYSTEMROOT%\SysWOW64\*onedrive*" 2>nul
del /F %OneDrive% 2>nul
echo ####### %0 ####### echo ####### %0 #######