Last active
August 29, 2015 14:11
-
-
Save vScripter/4cfa84960b3fc022d940 to your computer and use it in GitHub Desktop.
PowerCLI PSSnapins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Load appropriate PowerCLI PSSnapins. These are based on PowerCLI 5.8 R1. | |
#> | |
[cmdletbinding()] | |
param() | |
PROCESS { | |
try { | |
Add-PSSnapin VMware.VimAutomation.Core | |
Add-PSSnapin VMware.VimAutomation.Vds | |
Add-PSSnapin VMware.VimAutomation.License | |
Add-PSSnapin VMware.DeployAutomation | |
Add-PSSnapin VMware.ImageBuilder | |
Add-PSSnapin VMware.VimAutomation.Storage | |
} catch { | |
Write-Warning -Message "Error adding one of the PowerCLI PSSnapins - $_" | |
} # end try/catch block | |
} # end process block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment