Wednesday, June 19, 2019
Kill windows 10 updates planned task bat batch
Kill windows 10 updates
needs git bash to be installed for using some commands
c:/killWin10updates.bat {
@echo off
start /B c:/prog/git/bin/bash.exe c:/killWin10updates.sh
}
c:/killWin10updates.sh {
processes=`tasklist`;
runnin=`net start`;
echo $runnin | grep -i 'Orchestrator Service' && echo "kill Usosvc" && net stop UsoSvc;
echo $runnin | grep -i 'Windows Update' && echo "kill wuauserv" && net stop wuauserv;
echo $processes | grep -i Windows10UpgraderApp && echo "kill Windows10UpgraderApp" && taskkill /im Windows10UpgraderApp.exe /f
echo $processes | grep -i SetupHost && echo "kill SetupHost" && taskkill /im SetupHost.exe /f
}
c:/invisible.vbs {
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
}
then define a task, renew each 5 minutes, launch this command :
wscript.exe "C:\invisible.vbs" "C:\killWin10updates.bat"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment