2010-10-20 13 views

回答

6

嘗試Start-Process例如爲:

Start-Process cmd.exe -arg "/k whoami.exe" -Credential (Get-Credential) 

當然,你的腳本,你需要創建憑據編程而不是使用它提示用戶名/密碼的Get-Credential

相關問題