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.
@Ramhound
runas /user:%USERNAME%
cmd showsIncorrect username or password
when I enter correct user password from my USB token. – Dmitry – 2013-09-23T14:20:59.677Yes, 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