如何从管理员PowerShell启动非管理员进程

时间:2017-05-05 15:30:47

标签: windows powershell authentication administrator

从管理员PowerShell,有没有办法在不同的(例如,非管理员)用户下生成另一个shell(或.exe)?我知道这可以通过su {username}在Linux / Bash中实现,但是Windows允许吗?

C++ hereC# here已回答了这个问题,但我想知道PowerShell是否可行。

1 个答案:

答案 0 :(得分:0)

试试这个:

runas /trustlevel:0x20000 "powershell.exe -command 'hostname'"
相关问题