ProcessStartInfo and Process in PowerShell - Authentication Error

后端 未结 1 1391
我在风中等你
我在风中等你 2021-02-10 09:39

I have code that uses ProcessStartInfo and Process to invoke another script, and to return the output of that script.

Unfortunately, I am getting errors, and I am unsure

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-10 10:29

    It's pretty much spelled out to you, isn't it?:

    "Logon failure: unknown user name or bad password"

    (first error line).

    Note that DOMAIN should be provided in separate property:

    $startInfo.Username = "Username"
    $startInfo.Domain = "DOMAIN"
    

    0 讨论(0)
提交回复
热议问题