So Powercli 10 is out and powercli 6.5.3+ can only be availed via powershell gallery. Here is what you need to do. I assume that you are one of those who are using windows 10.
- Close all commandline windows; cmd, powershell, powercli etc.,
- Run powershell (not ISE, just powershell) as administrator
- Run the following command in your powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Accept or click yes to all and close the powershell window. - Now do the step (1 and )2 again.
- Run the following to get your powercli 10 installed. Just accept whatever prompt it gives that is choose Y for yes and A for all.
Install-Module -Name VMware.PowerCLI - Now run the following.
Import-Module VMware.VimAutomation.Core - The following will opt you out from the customer experience program.
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP $false
If you wish to opt in then you can change the $false to $true. Here I am using the scope as allusers to make sure all users have this setting. - Now let us set the powercli to ignore the unsigned user certificate error warnings.
Set-PowerCLIConfiguration -InvalidCertificateAction ignore -Scope AllUsers -Confirm:$false
Now you are good to user the powercli as you are used to.