Force Batch File To Run As Admin Here

The screen flickered. A UAC box popped up: "Do you want to allow this app to make changes?"

He added one more line before the net session check: force batch file to run as admin

His boss blinked. "Batch files can't get promotions." The screen flickered

Alan sipped his cold coffee. "The batch file… promoted itself." force batch file to run as admin

Alan had three choices: rewrite the script in PowerShell (too late), stay up until 3 AM clicking "Yes" on a UAC prompt (no), or force the batch file to demand admin rights itself.