I am trying to use a batch file to run a list of programs from startup. Windows automatically logs into a standard account. How can I run the .bat at startup with admin rights, without prompting for a password every time?
.bat in startup folder:
@echo off
cd C:\Program Files (x86)\program.exe
cd C:\C:\Program Files (x86)\program.exe
cd C:\Users\M\desktop\folder\
TIMEOUT 60
startscript.py
exit
I found this command:
runas.exe /savecred /user:administrator "defrag c:"
but cannot get it working.
Thank you!
Yes that is a typo. It would just refuse to launch the program, msi afterburner without prompting for admin pass.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.