fucking onedrive is a pest
This commit is contained in:
parent
363c327bfd
commit
559715eff9
@ -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 #######
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user