Modules show in the Object Browser, but when expanding most of them (specifically VMware.VimAutomation.Core), the functions associated do not show. In addition, and likely because of this, the Intellisense doesn't work. This makes it very difficult to incorporate VMware commandlets into my scripting.
The PowerCLI commandlets work and show in PowerShell ISE, if that helps.
To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2019 5.6.162
32 or 64 bit version of product: 64
Operating system: Windows 10
32 or 64 bit OS: 64
*** Please add details and screenshots as needed below. ***
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
PowerCLI functions not showing
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: PowerCLI functions not showing
Have you try reloading the Cache?
Please, let us know if this solves the problem.- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: PowerCLI functions not showing
So, I was able to rebuild cache after installing the VMWare module. One thing I notice was that it took a long time to complete.
But I can see the cmdlets working with intellisense.
This is using PowerShell Studio v 5.6.162
And, VMware.PowerCLI version: 11.2.0
But I can see the cmdlets working with intellisense.
This is using PowerShell Studio v 5.6.162
And, VMware.PowerCLI version: 11.2.0
Re: PowerCLI functions not showing
I appreciate you showing me that it can work. However, in this case, it is not working. Any other helpful tricks? I've completely uninstalled the module and re-installed the module, too (and then rebuilt)...
- mxtrinidad
- Posts: 399
- Last visit: Tue May 16, 2023 6:52 am
Re: PowerCLI functions not showing
Ok!
Sorry you're experience issue with the cache browser.
Let me ask around to see what else we can do to better assist you.
Sorry you're experience issue with the cache browser.
Let me ask around to see what else we can do to better assist you.
Re: PowerCLI functions not showing
You might have empty preset cache files. This can occur if the module failed to load / cache.
1. I recommend deleting any VMWare preset cache files:
2. Then rebuild the cache from PowerShell Studio 2019.
3. If the modules still come up empty, please zip the following folder:
C:\Users\(username)\AppData\Roaming\SAPIEN\CachedData 2.1\Local Machine
And upload it here:
https://sapien.com/support/upload
1. I recommend deleting any VMWare preset cache files:
Code: Select all
Get-ChildItem -Path 'C:\ProgramData\SAPIEN\PresetCache 2.1\ModuleCacheV5' -Filter VMWare* | Remove-Item
3. If the modules still come up empty, please zip the following folder:
C:\Users\(username)\AppData\Roaming\SAPIEN\CachedData 2.1\Local Machine
And upload it here:
https://sapien.com/support/upload
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: PowerCLI functions not showing
Thank you!
and the rebuild seems to have resolved the issue!
Code: Select all
Get-ChildItem -Path 'C:\ProgramData\SAPIEN\PresetCache 2.1\ModuleCacheV5' -Filter VMWare* | Remove-Item