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

Advertisements
add (VMware-)snapins at start

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s