Introducing a PowerShell Module for VMware Cloud Foundation Password Management


In January 2023 through the VMware Validated Solution programme we released both documentation and PowerShell cmdlets to help with the configuration of password policies across the VMware Cloud Foundation platform, enabling our customers to report and configure the password expiration, password complexity, and account lockout policies at scale.

The positive feedback received to date has blown us away and so last month during one of our planning sessions we discussed the merits for spinning out the cmdlets into their own dedicated open-source PowerShell module, during that discussion it was agreed that this would provide us and our customers the following benefits:

  • Dedicated module to support all password management operations at scale.
  • Flexible release cycle as not tied directly to PowerValidatedSolution releases.
  • Aligned with other Validated Operations initiatives where we have.

As a result I have the pleasure of announcing today the release of the new PowerShell Module for VMware Cloud Foundation Password Management which can be downloaded from the Microsoft PowerShell Gallery as with all of our open-source modules where it’s known as VMware.CloudFoundation.PasswordManagement

For this initial release we have focused on transitioning all of the functions from PowerValidatedSolutions to VMware.CloudFoundation.PasswordManagement but we have plans to enhance further in the coming months.

Installing the PowerShell Module

Installing VMware.CloudFoundation.PasswordManagement is very simple just like other PowerShell modules you use the Install-Module cmdlet.

Install-Module -Name VMware.CloudFoundation.PasswordManagement

However if you have previously used PowerValidatedSolutions then you should be aware that you will need to remove all existing versions from your system to avoid any conflicts between the exported function names as we have simply removed them from PowerValidatedSolutions and added them into the new VMware.CloudFoundation.PasswordManagement module. This can be done using the Uninstall-Module cmdlet.

Uninstall-Module -Name PowerValidatedSolutions -RequiredVersion

You supply the full version during the uninstall process, if your not sure what versions are installed on your system for Windows you can look in the C:\Program Files\WindowsPowerShell\Modules\PowerValidatedSolutions folder, this assumes you are using the default path to install PowerShell modules.

Verifying Module Prerequisites

The usage of the VMware.CloudFoundation.PasswordManagement module requires a number of other supporting PowerShell modules to also be installed, this is documented within the GitHub but as part of the switch to a dedicated module we have also introduced the new Test-VcfPasswordManagementPrereq cmdlet which you can run to check these prerequisites before attempting to use the main cmdlets to generate reports or perform the configuration.


Execution of the PowerShell Module

From an execution perspective this remains unchanged from the same as it was in January, I’ve already written a few blogs which you can check out:

Support and Feedback

To report issues, obtain support, or suggest enhancements to the open-source PowerShell Module, use GitHub Issues in the GitHub repository.

Other Open-source Modules

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s