Run a .bat file on startup as Administrator

Solved
Mordhin -  
draner5 Posted messages 43 Status Membre -
Hello everyone,
I have a computer running Windows 8.1 and I would like to launch a batch file every time my PC starts up. However, the command executed requires running the file as an administrator (right-click > run as administrator).

I have already tried putting my program in the startup folder, but it can only launch programs as a standard user.

I am therefore looking for a method to automate the launch of my batch file as an administrator at each startup of the PC.

Thank you for your help =)

Configuration: Windows 8/ Chrome 37.0.2062.124

3 réponses

Mordhin
 
For those wondering, Windows 8 blocks "admin" programs launched from the startup folder.

To work around this, go to Task Scheduler > Create New Task > enter the program path > run at every Windows startup > in the launch properties: check "Run with highest privileges"
there you go, thanks to @phil2K for the help!
4