You may come accross that after updating your PowerCLI module to version 12.5, you cannot run Get-VIApplianceService command. Even that your modules shows correct version.
I initially was not able to get it to work in my lab due to several installations/versions of PowerCLI on my server.
I was able to resolve the issue by uninstalling PowerCLI with the following command as I apparently had a couple of versions installed in different folders:
Get-Module VMware.* -ListAvailable | Uninstall-Module -Force
To check if you have other version installed please run this command:
Get-Module VMware.PowerCLI -ListAvailable
To confirm your Module path run this command:
$env:PSModulePath -split “;”
The last thing is to manually remove any folder started with VMware, if any left and re-install PowerCLI
Install-Module VMware.PowerCLI -Scope AllUser
After fresh PowerCLI installation I was able to run Get-VIApplianceService command
Please like and share to spread the knowledge in the community.
If you want to chat with me please use Twitter: @AngrySysOps
Visit my FB page: https://www.facebook.com/AngrySysOps
Read my blog: https://angrysysops.com
Subscribe to my channel : https://www.youtube.com/channel/UCRTcKGl0neismSRpDMK_M4A