14 Replies Latest reply on Feb 5, 2020 11:24 AM by LucD

    content_libray commands _powercli

    jvm2016 Expert

      Hi Luc,


      i am observing some issues uisnf content lib commands .


      i am doing following  to make commands available (and they are available)

      Update-Module vmware.powercli

      Import-Module vmware.vimautomation.core



      however it does not work  sometimes


      New-ContentLibrary : The term 'New-ContentLibrary' is not recognized as the name of

      a cmdlet, function, script file, or operable program. Check the spelling of the

      name, or if a path was included, verify that the path is correct and try again.

      At C:\Users\Administrator\Desktop\BPI.ps1:271 char:9

      + $conlib=New-ContentLibrary -Name "siteA con lib" -Datastore (get-data ...

      +         ~~~~~~~~~~~~~~~~~~

          + CategoryInfo          : ObjectNotFound: (New-ContentLibrary:String) [], Comma


          + FullyQualifiedErrorId : CommandNotFoundException