Use Posh-SSH instead of PuTTY
During the pre-Posh-SSH module times we often used the PuTTY Suite to run commands on our ESXi nodes.
With the arrival of the Posh-SSH module, there is no more need to use any of the PuTTY EXE.
Running a command on an ESXi node, provided SSH is running, is now as simple as:
$session = New-SSHSession -ComputerName $esx.Name -Credential $cred –AcceptKey
$result = Invoke-SSHCommand -SSHSession $session -Command $cmdSub
Remove-SSHSession -SSHSession $session | Out-Null