Thursday, October 18, 2012

What is the quickest way to get an admin command prompt?

z.bat
runas /savecred /user:domain\admin "cmd /K net use z: \\server01\share\utils && z:"
I need admin command prompts everyday. Now clicking on Z in "My Documents" will give me an admin prompt in under one second. It also maps z: to a share with my network utilities. The first time you enter the password and it is saved in your profile. It even works on Citrix servers.


The title bar reminds me this is an admin window!


No comments: