1.Open PowerShell ISE


2.Create and open your profile with:


New-Item -Path $Profile -ItemType file -Force

notepad $profile


3.Notepad will open with an empty file. Enter the following command:

PowerCli 6.0:


& 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1'


PowerCli 6.5:


& 'C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1'


4.Restart PowerShell ISE


How to initialize PowerCLI 6.x in PowerShell_powercli



​https://www.virten.net/2016/07/how-to-properly-initialize-powercli-6-x-in-powershell-ise/​