Have you connected the vCenter using "Connect-VIServer vCentername " If not please connect first and then you can run the command to get the result.Nawals
Which PowerCLI version are you using?
Did you recently upgrade PowerCLI?
This kind of behaviour has been noted when there are parts of a 2nd version of PowerCLI installed.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
This is the version that I have of powercli:
VMware PowerCLI 12.0.0 build 15947286
VMware Common PowerCLI Component 12.0 build 15939652
VMware Cis Core PowerCLI Component PowerCLI Component 12.0 build 15939657
VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 12.0 build 15939655
Did you have an MSI install before?
Do you still see PowerCLI in Programs and Features Control Panel applet?
To start from a clear solution it is probably best to remove all PowerCLI files and folders.
See also Kyle's Welcome PowerCLI to the PowerShell Gallery – Install Process Updates post.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
I have been doing the tests you have mentioned, and I still have the same problem that the Get-Cluster does not show me.
I have tried other vCenter and it has given me the information correctly.
And you are sure there is a cluster on that vCenter?
Can you try it this way?Get-View -ViewType ClusterComputeResourceBlog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
I have taken the opportunity to connect to the vCenter and indeed it is what you have commented that in this vCenter there is no Cluster configured.
Sorry for the inconvenience and thank you very much for your help.