@echo off rem Escalate to administrator privileges powershell -Command "Start-Process cmd -Verb runAs" rem Add Task Scheduler entry schtasks /create /tn "KBRemover" /tr "powershell -File C:\MCW\KBRemover.ps1" /sc DAILY /st 07:00 /ru System rem If the task fails to run, it will run on the next computer startup schtasks /create /tn "KBRemover" /tr "powershell -File C:\MCW\KBRemover.ps1" /sc ONSTART /ru System echo Task Scheduler entry created successfully.