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

后端 未结 23 1638
既然无缘
既然无缘 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:52

    There are several ways to open an elevated cmd, but only your method works from the standard command prompt. You just need to put user not username:

    runas /user:machinename\adminuser cmd
    

    See relevant help from Microsoft community.

提交回复
热议问题