vCheck script password centralized location
vCheck script password centralized location
$Username = "domain.com\username"
$password = Get-content \\10.10.0.28\e$\vcheck\chandru\encrypted.txt |ConvertTo-Securestring
$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Username,$password
$VIConnection = Connect-VIServer $VIServer -Credential $Cred –Protocol Https
Comments
Post a Comment