VMware Cloud Community
jrr001
Enthusiast
Enthusiast
Jump to solution

Get-Module VMware.PowerCLI -ListAvailable suddenly stopped showing results

today was strange. Windows 10 powercli working fine many years, went to run script and it didn't think powercli was still installed.  Get-Module VMware.PowerCLI -ListAvailable shows nothing. Did a install-module -Name VMware.PowerCLI again and scripts run again now but module commands don't know PowerCli is there. Get-Module -ListAvailable -Refresh shows powercli installed and Get-InstalledModule shows powercli is there. 

$env:PSModulePath shows the path to where powercli modules are located.

Get-Module VMware.PowerCLI -ListAvailable not showing anything is very strange

Uninstall-module -Name VMware.PowerCLI doesn't know it is there.

Any ideas appreciated.

 

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

From your screenshot it looks as if the actual module VMware.PowerCLI is not there, while other PowerCLI related modules are there.
That VMware.PowerCLI module is the one that pulls in all the other modules.

I would suggest manually deleting all PowerCLI related folders, and then doing a fresh install with Install-Module.

I have no clue how you got into this situation.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

From your screenshot it looks as if the actual module VMware.PowerCLI is not there, while other PowerCLI related modules are there.
That VMware.PowerCLI module is the one that pulls in all the other modules.

I would suggest manually deleting all PowerCLI related folders, and then doing a fresh install with Install-Module.

I have no clue how you got into this situation.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

jrr001
Enthusiast
Enthusiast
Jump to solution

Thanks so much Luc! That fixed it! Really appreciate it!

0 Kudos