Uninstall PowerCLI

You can uninstall PowerCLI by running PowerShell commands. You can uninstall all official modules, or uninstall modules individually.


  • Verify that you have closed all PowerShell sessions which are running PowerCLI modules.


  1. Open the PowerShell console.
  2. To uninstall all official PowerCLI modules except VMware.PowerCLI, run the following command.
    (Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force
  3. To uninstall the PowerCLI main module, run the following command.
    Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force