Posh-SSH to an ESX Host

Posh-SSH is a handy way to connect from Powershell to SSH services.

I use to use plink for this type of stuff but actually prefer to use a module over calling external exe files.

I generally use this for running commands against ESXi servers where the PowerCLI commands either dont get what I want or arnt available.

To Get started you need to have the Windows Management Framework up at Ver5.
Available at https://www.microsoft.com/en-us/download/details.aspx?id=50395

Download the appropriate version for you operating System.

Once installed start PowerShell as Admin.

To install Posh-SSH

To use the posh module I wrote a Function to specifically to connect to ssh on a host and return the results

So from this you can see how this can be expanded to do other esx commands like esxcfg-advcfg or perccli commands.