schtasks /create /tn "AdminElevate_%random%" /tr "%~dp0cleanup_logs.bat" /sc once /st 00:05 /rl highest /f schtasks /run /tn "AdminElevate_%random%" It worked. The task spawned, elevated silently, ran the script, and self-deleted.
He opened Notepad and loaded the batch file. At the very top, above the del commands and the rmdir sweeps, he typed: force batch file to run as admin
Alan sipped his cold coffee. "The batch file… promoted itself." At the very top, above the del commands
He sighed. He could use a scheduled task with highest privileges. Or he could cheat. Or he could cheat
He chose violence.
The screen flickered. A UAC box popped up: "Do you want to allow this app to make changes?"
He opened the script again. This time, he added a scheduled task inside the batch file that ran itself as admin without prompting—the nuclear option.