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.
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
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
Thanks so much Luc! That fixed it! Really appreciate it!