& { $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
& { $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.