簡體   English   中英

嘗試使用不同憑據從 powershell 運行 exe 時出錯

[英]Getting an error while trying to run exe from powershell with different credentials

我試圖做一些非常簡單的事情,我想使用不同的憑據從 powershell 調用一個 exe。 對於我的測試,我運行此命令,而 powershell session 是 exe 文件的根目錄:

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

然后我輸入我想要的憑據(檢查 10 次),仍然收到以下錯誤: 在此處輸入圖像描述

憑據很好,知道為什么會出現此錯誤嗎?

好吧,看來 powershell 的用戶名不能為“blabla@blabla.bla”,用戶名必須為“domain.something\username”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM