There is context menu entry on cmd, "Run as Administrator", that opens UAC window and launches cmd as Administrator.
How can I open a program as Administrator in command line?
I've read about runas but it requires /user option when context menu entry doesn't require it.
How can I open a program as Administrator in command line without specifying user name? Like context menu entry does.
runas /user:%USERNAME%cmd showsIncorrect username or passwordwhen I enter correct user password from my USB token. – Dmitry Sep 23 '13 at 14:20