PS: Setup your script for VMware and Veeam

PS: Setup your script for VMware and Veeam

Okay so when you need to make a script that will interact with VMware and Veeam you are going to need to run the following at the start of your script

# The following will load the VMware Powercli Automation core
Add-PSSnapin -Name VMware.VimAutomation.Core
# The following will load the Veeam Powershell module
Add-PSSnapin -Name VeeamPSSnapin
# The following command will print to console the loaded modules
write-host (Get-PSSnapin –Registered ) -foregroundcolor green

 

 

Advertisements