How can I execute a .bat file as Administrator on startup?

We want to autorun d:\func.bat when we log in to Windows 8.

We have added test.cmd to C:\Users\<User Profile>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. When we reboot or start Windows 8 and auto run d:\func.bat, but we found some tools as administrator.

I want to auto run Command Prompt as Administrator and run d:\func.bat result ok.


Solution 1:

Try using Task Scheduler to run the desired batch or cmd file at startup.

The difference with Task Scheduler is that you can provide credentials with which the application should run(Administrator in your case).