From 831d09ac1a2cd431d07d5c741eec1c23faa624c2 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" <michael@schmidt2.de> Date: Sun, 12 Mar 2023 11:25:14 +0100 Subject: [PATCH] disable/remove chrome and onedrive update tasks --- tools/logon.cmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/logon.cmd b/tools/logon.cmd index 03eb4c2..37062d5 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -460,6 +460,14 @@ taskkill /f /im chrome.exe /FI "USERNAME eq %USERNAME%" 2>nul rd /S /Q %USERPROFILE%"\AppData\Local\Google\Chrome\User Data\Default\Cache" 2>nul del /F /Q %USERPROFILE%"\AppData\Local\Google\Chrome\User Data\Default\History*" 2>nul +rem - sigh - this zombie (chrome) keeps coming back ... +echo Disabling chrome update tasks ... +powershell -Command "Get-ScheduledTask | where TaskName -like 'Google*' | Disable-ScheduledTask" + +rem same with OneDrive. This little sucker keeps coming back ... +echo removing OneDrive update task ... +powershell -Command "Get-ScheduledTask | Where-Object {$_.Taskname -match 'OneDrive Standalone Update'} | Unregister-ScheduledTask -Confirm:$false" + echo. echo Other tasks and fixes for the user echo ########################################