代碼: 選擇全部
new-vicredentialstoreitem -host ESXi01 -user root -password admin123 -file d:\certfile.xml
代碼: 選擇全部
$creds = Get-VICredentialStoreItem -file "D:\cerifile.xml"
代碼: 選擇全部
Connect-viserver -Server $creds.Host -User $creds.User -Password $creds.Password