How do I open a elevated command prompt using command lines on a normal cmd?
For example, I use runas /username:admin cmd but the cmd that was opened do
runas /username:admin cmd
I ran into the same problem and the only way I was able to open the CMD as administrator from CMD was doing the following:
powershell -Command "Start-Process cmd -Verb RunAs"