Get-Tag or New-TagAssignment), the script or command fails immediately. The vCenter vAPI Endpoint service is verified to be running and healthy, yet the following error is thrown in the PowerShell console:Get-Tag : Unable to resolve WSDL method name QueryServiceEndpointList in vim.version.version7 (internalvim25/5.0)while parsing SOAP body...
Get-Tag to New-TagAssignment, a secondary cascading error will appear due to the missing tag object:New-TagAssignment : Value cannot be null. Parameter name: collection
VMware.VimAutomation.Cis.Core) fails to load or crashes silently during the initial connection to vCenter due to corrupted PowerCLI modules or conflicting assembly versions (e.g., overlapping .dll files) on the local machine executing the script.internalvim25/5.0 error.To resolve this issue, the local PowerCLI environment must be completely purged of all VMware modules and reinstalled cleanly.
Verification Steps:
Open PowerShell as Administrator.
Verify if the module is installed. If it returns a version, proceed to the next step. If it returns nothing, the module is missing and simply needs to be installed: Get-Module -Name VMware.VimAutomation.Cis.Core -ListAvailable
Bypass SSL warnings and disconnect stale sessions: Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false Disconnect-VIServer * -Confirm:$false
Attempt to connect explicitly to the CIS server to expose the underlying assembly corruption error: Connect-CisServer -Server <vCenter_HOSTNAME/IP>
Clean Reinstall Steps:
Get-Module -Name VMware.* -ListAvailable | Uninstall-Module -Force -AllVersions
Get-Module -Name VMware.* -ListAvailable (Note: If modules still appear, manually navigate to C:\Program Files\WindowsPowerShell\Modules and delete all folders prefixed with VMware.)Install-Module -Name VMware.PowerCLI -Force -AllowClobber -Scope AllUsers
Get-Tag should now successfully query the vCenter vAPI endpoint.As a temporary workaround, the script can be run from a different Jumpbox with a healthy, uncorrupted PowerCLI installation.