PS C:\Windows\system32> Get-Module VMware.* -ListAvailable 目录: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 12.6.0.... VMware.CloudServices {Connect-Vcs, Disconnect-Vcs, Get-VcsOrganizationRole, Get... Script 12.6.0.... VMware.CloudServices {Connect-Vcs, Disconnect-Vcs, Get-VcsOrganizationRole, Get... Script 8.0.0.2... VMware.DeployAutomation {Add-CustomCertificate, Add-DeployRule, Add-ProxyServer, A... Script 7.0.3.1... VMware.DeployAutomation {Add-CustomCertificate, Add-DeployRule, Add-ProxyServer, A... Script 8.0.0.2... VMware.ImageBuilder {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-Esx... Script 7.0.3.1... VMware.ImageBuilder {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-Esx... Manifest 12.7.0.... VMware.PowerCLI Manifest 12.7.0.... VMware.PowerCLI Script 12.6.0.... VMware.PowerCLI.Sdk Script 12.6.0.... VMware.PowerCLI.Sdk Script 12.6.0.... VMware.PowerCLI.Sdk.Types Script 12.6.0.... VMware.PowerCLI.Sdk.Types Script 12.6.0.... VMware.PowerCLI.VCenter {Get-VIMachineCertificate, Get-VITrustedCertificate, Remov... Script 12.6.0.... VMware.PowerCLI.VCenter {Get-VIMachineCertificate, Get-VITrustedCertificate, Remov... Script 12.6.0.... VMware.PowerCLI.VCenter.Types.Ap... Script 12.6.0.... VMware.PowerCLI.VCenter.Types.Ap...
上图查看目前的版本
可以直接把所有的包都删除掉,默认路径在
PS C:\Users\maym-H770> $env:PSModulePath
查看所有路径
C:\Users\maym-H770\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
一般在C:\Program Files\WindowsPowerShell\Modules
将里面VMware的包都删除掉
再次查看VMware的包发现已经没有了
PS C:\Users\maym-H770> Get-Module VMware.* -ListAvailable