VCF PowerCLI 9.0 fails to run commands. cannot find specified file.
search cancel

VCF PowerCLI 9.0 fails to run commands. cannot find specified file.

book

Article ID: 409981

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

While attempting to run PowerCLI commands after an upgrade to VCF 9.0 Powercli, the commands cannot find the module file to various commands. 

Powershell version is 5.2.x

Environment

VCF vCenter 9.0 

WIndows 10 or 11. 

PowerShell 5.2.1

Cause

Deprecation of  Powershell 5.2.x.

Resolution

Introduced in VCF PowerCLI 9.0 Was introduced a requirement of PowerShell 7.0 plus. Please upgrade Powershell to the newer version as the new module design does not get copied in correctly, and will introduce 

Additional Information

Prerequisite
Note: PowerShell 5.1 is being deprecated. We recommend installing a supported version of PowerShell to ensure compatibility and receive the latest updates and security fixes. As of today, PowerShell 7.4 or later is officially supported and is our minimum recommended version for use.
For more information, see PowerCLI compatibility matrixes.

see https://developer.broadcom.com/powercli/installation-guide for more details