New to my PowerShell Profile: VMware PowerCLI

& {
$ErrorActionPreference = "silentlycontinue"
$vmwareSnap = get-pssnapin -name "VMware.VimAutomation.Core"
if (! $?) { add-pssnapin "VMware.VimAutomation.Core" }
}

This will add the PowerShell CLI tools if they exist.

Thanks to this thread

,

Comments are closed.