Runas program as administrator

0

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.

Dmitry

Posted 2013-09-23T13:17:26.730

Reputation: 165

Question was closed 2013-09-29T16:57:23.537

@Ramhound runas /user:%USERNAME% cmd shows Incorrect username or password when I enter correct user password from my USB token. – Dmitry – 2013-09-23T14:20:59.677

Yes, as I said, I can use "Run as Administrator" menu entry with UAC request. – Dmitry – 2013-09-23T15:18:35.463

@Ramhound BTW my user has password associated with security token, and I use this method to login. – Dmitry – 2013-09-23T15:19:40.467

No answers