【问题标题】:Getting an error while trying to run exe from powershell with different credentials尝试使用不同凭据从 powershell 运行 exe 时出错
【发布时间】:2020-06-15 16:34:09
【问题描述】:

我正在尝试做一些非常非常简单的事情, 我想使用不同的凭据从 powershell 调用 exe。 对于我的测试,我在 powershell 会话是 exe 文件的根目录时运行此命令:

Start-Process ".\blabla.exe" -Credential $(Get-Credential)

然后我输入我想要的凭据(检查 10 次),但仍然收到以下错误:

凭据很好,知道为什么会出现此错误吗?

【问题讨论】:

标签: windows powershell


【解决方案1】:

看来powershell不能将用户名设为“blabla@blabla.bla”,用户名必须为“domain.something\username”

【讨论】:

    猜你喜欢
    • 2015-08-04
    • 2013-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-17
    • 1970-01-01
    相关资源
    最近更新 更多