How to open an elevated cmd using command line for Windows?

后端 未结 23 1599
既然无缘
既然无缘 2020-12-04 06:21

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

23条回答
  •  隐瞒了意图╮
    2020-12-04 06:41

    You can use the following syntax, I had the same question and did not think a script should be needed.

    runas /profile /user:domain\username cmd

    This worked for me, it may be different on your network.

提交回复
热议问题