Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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).

share|improve this answer
I will verify this way,thanks! – Sam Jun 13 '12 at 2:10
i have tried out this way, but it cannot work.could you support to detail information?thanks – Sam Jun 14 '12 at 3:46
Don't forget that you have to start the batch file via cmd.exe /c test.cmd – Robert Nov 29 '12 at 13:32

Regarding CMD Run as Administrator

What I do is right click the program or its shortcut: Properties, seek an Advanced button, tick - Run as Administrator.

Click OK, then OK the next menu.

share|improve this answer
I want to let the machine auto run this batch file when login Windows 8 OS – Sam Jun 20 '12 at 2:13
Hello me. Anyway, You could turn of UAC, but that might not be very safe. I think Task Scheduler would be the best way as tumchaaditya said. – Sam Dec 31 '12 at 4:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.