How to run a process as non-admin from an elevated PowerShell console?

前端 未结 4 1708
孤独总比滥情好
孤独总比滥情好 2021-02-05 13:51

Maybe there is a way to do it with Start-Process cmdlet that I cannot find? The other related Q/A\'s I found on StackOverflow such as this, this and this all give a solution to

4条回答
  •  一生所求
    2021-02-05 14:19

    Another, limited, way: Make Windows Explorer launch it for you

    PS C:\> explorer.exe "C:\windows\system32\cmd.exe"
    

    Just use the full path and extension. But it does NOT accept parameters.

    I tried creating a batch file. But explorer refuses to launch .BAT or .CMD.

提交回复
热议问题