Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Device Manager As Administrator

Status
Not open for further replies.

MrTBC

Technical User
Nov 19, 2003
610
US
Any idea why this batch file isn't working please?

runas /user:admin c:\windows\system32\devmgmt.msc
 
Does your admin account have a password associated with it?
If it does then you need to change the command to also have the password.. generally you can do the

runas /user:admin password

or if you want it to prompt you would do.

runas /user:admin *

Give it a try and let us know.
 
Also is the account Admin and not Administrator?

Just a thought.

Stu..

Only the truly stupid believe they know everything.
Stu.. 2004
 
It does actually prompt me for the password (I am using the right username and password) but then doesn't run the program.
 
No - it just doesn't do anything :-<

I've got round this temporarily by creating a shortcut to c:\windows\system32\devmgmt.msc and ticking 'Run With Different Credentials' under 'Advanced'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top