ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Troubles installing PowerCLI

    IT Discussion
    powershell powershell ise powercli microsoft vmware
    2
    3
    625
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NerdyDadN
      NerdyDad
      last edited by

      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.

      travisdh1T 1 Reply Last reply Reply Quote 1
      • travisdh1T
        travisdh1 @NerdyDad
        last edited by

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

        1 Reply Last reply Reply Quote 1
        • NerdyDadN
          NerdyDad
          last edited by

          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

          1 Reply Last reply Reply Quote 4
          • 1 / 1
          • First post
            Last post