connect-VIServer -Server <vCenter_Server FQDN>connect-VIServer: The term 'connect-VIServer' is not recognized as a name of a cmdlet, function, script file, or executable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again
Get-Module -Name VCF.PowerCLI -ListAvailable shows that the module manifest is located within a nested directory (e.g., C:\Program Files\WindowsPowerShell\Modules\VCF-PowerCLI-9.1.0-25380678).VMware vCenter Server
VCF PowerCLI
This issue occurs when the offline PowerCLI .zip file is extracted into a parent subfolder instead of being placed directly into the standard PowerShell Modules directory.
Windows PowerShell requires individual module folders to sit directly inside a path defined in the $env:PSModulePath variable. Because the module folders were nested inside a parent extraction folder (e.g., VCF-PowerCLI-9.1.0-25380678), PowerShell's auto-discovery mechanism could not locate the cmdlets, preventing the modules from finding their respective dependencies during import.
To resolve this issue, the module folders must be moved to the correct directory level so PowerShell can properly index them.
C:\Program Files\WindowsPowerShell\Modules\.Connect-VIServer -Server <vCenter_FQDN>