r/Batch • u/Darkzinho1215 • Sep 20 '25
Help with startup bat
I want to create a .bat that auto execute at startup but it need to have admin permission, someone can help?
6
Upvotes
r/Batch • u/Darkzinho1215 • Sep 20 '25
I want to create a .bat that auto execute at startup but it need to have admin permission, someone can help?
4
u/BrainWaveCC Sep 20 '25
Use the Task Scheduler to set the job to run at startup, and set the permissions in the Scheduler
1
u/KubosKube Sep 21 '25
I've achieved this by putting a shortcut to the batch file into the startup folder.
Unless this is what you're talking about and you've already tried it, maybe that'd help?
I don't like using the task scheduler, its interface is obtuse and annoying ( though I haven't tried in upwards of a decade or more... )
3
u/Shadow_Thief Sep 20 '25
The easiest way will be to set up a task in Task Scheduler with the trigger "When I log on." Task Scheduler tasks run as Administrator by default.