Run batch file as administrator

Get help for specific problems
Posts: 2
Joined: 6 Dec 2018

codewright

Is it possible to run a batch file as administrator. I want to automatically run the batch file when I boot my PC but need it to run as administrator so it will copy locked files. Thanks.
User avatar
Posts: 2278
Joined: 22 Aug 2012

Plerry

Make it a scheduled task (run at boot),
and define in the task scheduler that the task is to be run under the proper user credentials.
Posts: 2
Joined: 6 Dec 2018

codewright

Thanks. I'll give it a try.