PowerCLI functions not showing

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
bjguthrie
Posts: 11
Last visit: Thu Feb 22, 2024 10:00 am

PowerCLI functions not showing

Post by bjguthrie »

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. ***
Capture.PNG
Capture.PNG (16.43 KiB) Viewed 4049 times

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: PowerCLI functions not showing

Post by mxtrinidad »

Have you try reloading the Cache?
PSreload Cache_2019-05-09_13-44-26.jpg
PSreload Cache_2019-05-09_13-44-26.jpg (17.07 KiB) Viewed 4042 times
Please, let us know if this solves the problem.
bjguthrie
Posts: 11
Last visit: Thu Feb 22, 2024 10:00 am

Re: PowerCLI functions not showing

Post by bjguthrie »

I have tried both reloading and rebuilding the cache.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: PowerCLI functions not showing

Post by mxtrinidad »

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.
VMwareCmdlet_02-2019-05-09_15-07-28.jpg
VMwareCmdlet_02-2019-05-09_15-07-28.jpg (206.59 KiB) Viewed 4029 times
This is using PowerShell Studio v 5.6.162

And, VMware.PowerCLI version: 11.2.0

:)
bjguthrie
Posts: 11
Last visit: Thu Feb 22, 2024 10:00 am

Re: PowerCLI functions not showing

Post by bjguthrie »

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)...
Capture1.PNG
Capture1.PNG (46.45 KiB) Viewed 4026 times
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: PowerCLI functions not showing

Post by mxtrinidad »

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.

:)
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PowerCLI functions not showing

Post by davidc »

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:

Code: Select all

Get-ChildItem -Path 'C:\ProgramData\SAPIEN\PresetCache 2.1\ModuleCacheV5' -Filter VMWare* | Remove-Item
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
David
SAPIEN Technologies, Inc.
bjguthrie
Posts: 11
Last visit: Thu Feb 22, 2024 10:00 am

Re: PowerCLI functions not showing

Post by bjguthrie »

Thank you!

Code: Select all

Get-ChildItem -Path 'C:\ProgramData\SAPIEN\PresetCache 2.1\ModuleCacheV5' -Filter VMWare* | Remove-Item
and the rebuild seems to have resolved the issue!
Capture2.PNG
Capture2.PNG (34.99 KiB) Viewed 3960 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PowerCLI functions not showing

Post by davidc »

I'm glad I was able to help.
David
SAPIEN Technologies, Inc.
This topic is 4 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.