Hello
My vSphere environment is finally all on 6.0, so it's become time to upgrade my PowerCLI deployment scripts to work from Content Libraries. I started delving into the process but my existing 11.2 PowerCLI had only the Get-ContentLibraryItem cmdlet native. I found the Functions William Lam posted here (PowerCLI-Example-Scripts/ContentLibrary.psm1 at master · lamw/PowerCLI-Example-Scripts · GitHub ) but that did not seem to work in my environment. No problem - I saw that PowerCLI 11.5 was available and had additional cmdlets. I upgraded my PowerCLI and none of the new cmdlets nor even the most basic Get-ContentLibrary query works anymore. The error I get back is:
Get-ContentLibrary : 12/10/2019 10:07:48 AM Get-ContentLibrary An error occurred while trying to get content
libraries by names. For more details check the inner exception.
At line:1 char:1
+ Get-ContentLibrary
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ContentLibrary], CisException
+ FullyQualifiedErrorId : ViCore.Impl.V1.Service.ContentLibrary.ContentLibraryImpl.GetContentLibraryNonWildcardNam
es.Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.ContentLibrary.GetContentLibrary
I'm connected properly via Connect-VIServer and verified connectivity through other cmdlets. Any ideas?
Thank you!