Troubleshooting PowerCLI Module issue encountered while executing KB 313548
search cancel

Troubleshooting PowerCLI Module issue encountered while executing KB 313548

book

Article ID: 451895

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

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.

Environment

VMware vSphere 8.x
PowerShell 7.5.x

Cause

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.

Resolution

To resolve this issue and successfully load the PowerCLI module, follow these steps:

  • Correct Module Location: Move the extracted PowerShell module to the appropriate system directory: 'C:\Program Files\Powershell\Modules'.

  • Offline Installation: If the environment is restricted and does not have internet access, follow the official Broadcom offline installation documentation to ensure the PowerCLI module is correctly deployed.

  • Execute Verification: Once the module is properly installed and recognized, proceed with the steps documented in KB Counting Cores for VMware Cloud Foundation and vSphere Foundation and TiBs for vSAN to complete the required Core and TiB license count for respective deployment.

Additional Information

VMware PowerCLI User's Guide