- Make sure .NET Framework 4.5 is installed (HERE)
- Make sure that Powershell 3.0 is installed (do not use 4.0 as it breaks add-ins) (HERE)
- Install vSphere PowerCLi (HERE)
- open PS and run: Set-ExecutionPolicy -ExecutionPolicy unrestricted
- Close and reopen PS and create a new profile by running: New-item –type file –force $profile
- Run the following: Notepad $profile
- Paste the following into the file:
- 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.Cloud
- Add-PSSnapin VMware.VimAutomation.Core
- Save the PS1 file on your desktop and open a session via the shortcut.