His boss blinked. "Batch files can't get promotions."
He sighed. He could use a scheduled task with highest privileges. Or he could cheat. force batch file to run as admin
Alan sipped his cold coffee. "The batch file… promoted itself." His boss blinked
@echo off net session >nul 2>&1 if %errorlevel% neq 0 ( echo Requesting administrator privileges... powershell start -verb runas '%0' exit /b ) He saved it. Double-clicked. force batch file to run as admin
He clicked Yes.