You can uninstall
PowerCLI by
running Windows PowerShell commands. You can uninstall all official modules, or
uninstall modules individually.
Prerequisites
- Verify that you have
closed all PowerShell sessions which are running
PowerCLI
modules.
Procedure
-
Open the Windows
PowerShell console.
-
To uninstall all
official
PowerCLI
modules except
VMware.PowerCLI, run
the following command.
(Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force
-
To uninstall the
PowerCLI main
module, run the following command.
Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force