add (VMware-)snapins at start

# Check if profile-file exists (difference between powershell and powershellISE)
Path $profile

# create, if it not exists
Item -path $profile -type file -force | Out-Null

# ADD to prifile file:
#Load Windows PowerShell cmdlets for managing vSphere
Add-PsSnapin VMware.VimAutomation.Core -ea “SilentlyContinue”
Add-PsSnapin VMware.VimAutomation.VDS -ea “SilentlyContinue”
# if necessary, add more snapins according to PowerCLI User Guide

Leave a Reply

Your email address will not be published. Required fields are marked *