PowerCLI module failed to load preventing the execution of the script documented in KB Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN
The specified module 'VMware.PowerCLI' was not loaded because no valid module file was found in any module directory.
VMware vSphere 8.x
PowerShell 7.5.x
The PowerCLI module was incorrectly extracted to the user-specific directory (C:\Users\User\Documents\Powershell\Module), which prevented the system from recognizing and loading the module.
To resolve this issue and successfully load the PowerCLI module, follow these steps: