-3
我試圖用Windows Server 2016. 自動化東西現在我無法通過PowerShell Direct訪問sysprep
ed虛擬機,因爲您必須爲管理員帳戶設置密碼。我怎樣才能訪問這個服務器?無法訪問syspreped VM
PS>icm -VMName S2D1 { ipconfig } cmdlet Invoke-Command at command pipeline position 1 Supply values for the following parameters: The credential is invalid. + CategoryInfo : OpenError: (S2D1:String) [], PSDirectException + FullyQualifiedErrorId : PSSessionStateBroken
你問如何傳遞憑據? AFAICS'調用命令-VMName S2D1 -ScriptBlock {...} -Credential(GET-憑證)'應該這樣做。 –
@AnsgarWiechers但我沒有密碼並沒有因爲sysprepred – aliarousyoucef
的問題,所以你的問題是如何創建一個憑據對象用空密碼? –