By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
How can I set login.bat to run with administrator rights? If I log in as a user and don't have administrator rights on the client, and I am trying to do something that requires administrator rights. Login.bat will not execute properly.
If you want to perform an activity that requires admin rights, you should log in as an admin. If you want to run something at elevated privileges, use the RunAs command. I don't know if it is possible to change the execution security level of a logon script.