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

Popular posts from this blog

Using Non-Maskable Interrupt (NMI) facilities to troubleshoot unresponsive VMware Virtual Machine.

Removing invalid linked clone entries automatically using the ViewDBChk tool

VMTool update steps on Horizon VDI Parent VM