Troubles installing PowerCLI



  • I was having troubles installing PowerCLI last week. Normally, you would install PowerCLI by:

    1. Adding the PowerShell Galary as a repository (unless you have already done this).
    2. Run "Install-Module VMware.PowerCLI";
    3. Set your execution policy to RemoteSigned (unless you have already done this).

    However, Microsoft and their infinite wisdom decided to name their commands the same thing. When PowerShell goes to bring in the commands, it skips over commands that it already has in its module libraries. In order to get around this problem, you have to add on the AllowClobber parameter.

    So, line 2 should read "Install-Module VMware.PowerCLI -AllowClobber" before you are able to connect to either a vSphere or a vCenter server.



  • @nerdydad Microsoft leaving out important things in documentation.... wish I could say that was abnormal.



  • They aren't in the ML community but special shoutout to Ariel Sanchez and Joe Houghes for this help. Somebody needs to get them into ML.

    https://twitter.com/TheRealNerdyDad/status/1049365117140447238