Run batch file as administrator
- Posts: 2
- Joined: 6 Dec 2018
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.
- Posts: 2524
- Joined: 22 Aug 2012
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.
and define in the task scheduler that the task is to be run under the proper user credentials.
- Posts: 2
- Joined: 6 Dec 2018
Thanks. I'll give it a try.