【问题标题】:How to start a non-administrator process from an administrator powershell如何从管理员 powershell 启动非管理员进程
【发布时间】:2017-05-05 15:30:47
【问题描述】:

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

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

【问题讨论】:

标签: windows powershell authentication administrator


【解决方案1】:

试试这个:

runas /trustlevel:0x20000 "powershell.exe -command 'hostname'"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-23
    • 2013-08-01
    • 2013-05-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多