Q

6 How can I set login.bat to run with admin rights?

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.
This was first published in June 2003

Dig deeper on Windows Server Troubleshooting

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close