Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Use this forum to ask about non-product related topics (login issues, product registrations, web site questions, etc.) No technical support questions, please.
Forum rules
Do not post any 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.
This topic is 3 years and 7 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.
User avatar
christian.pauli@pari.com
Posts: 5
Last visit: Mon Nov 08, 2021 3:17 am

Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by christian.pauli@pari.com »

Hello,

I am working on a Script where I have to change licenses for hundreds of peoples on our AzureAD.

I am running the following Setup:

Windows 10 1909 Build 18363.959
PowerShell Studio 2020 5.7.179
PowerShell Version 5.1.18362.752

I have installed the AzureAD + MSOnline Module from Powershell Packages:

*powershellgallery*com/packages/MSOnline/1.1.183.57
*powershellgallery*com/packages/AzureAD/2.0.2.106

After Installation I checked both modules in my Cache Editor and rebuild the cache. Then I can see both Modules in the Object Browser, but I cannot expand them nor is the code editor aware of the include cmdlets from these modules.

Have anybody an idea, whats the reason for this?
Screen-22.07.2020-0005.jpg
Screen-22.07.2020-0005.jpg (43.58 KiB) Viewed 8207 times
Screen-22.07.2020-0006.jpg
Screen-22.07.2020-0006.jpg (15.48 KiB) Viewed 8207 times
When I want to use the same Cmdlet's in Powershell ISE, then I have no problems at all:
Screen-22.07.2020-0008.jpg
Screen-22.07.2020-0008.jpg (78.12 KiB) Viewed 8202 times
Help would be really nice for nicer coding workflow.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 9:46 am
Answers: 39
Been upvoted: 30 times

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by brittneyr »

Please open the cache editor and verify that you see the modules that you are having issues with are checked. Then 'Build cache':
SPS_CacheBuilderBuild.png
SPS_CacheBuilderBuild.png (41.78 KiB) Viewed 8193 times
Close the cache editor. Then reload the cache into PowerShell Studio:
SPS_Reload-Cache.png
SPS_Reload-Cache.png (30.19 KiB) Viewed 8193 times
Brittney
SAPIEN Technologies, Inc.
User avatar
christian.pauli@pari.com
Posts: 5
Last visit: Mon Nov 08, 2021 3:17 am

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by christian.pauli@pari.com »

Hello Brittney,

thank you for your fast answer. I did this step's serveral times before without any luck. Did you have another idea what could be the cause?

Best regards
Chrisitan
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by Alexander Riedel »

Please navigate to this folder on your computer: C:\ProgramData\SAPIEN\PresetCache 2.1\ModuleCacheV5
Locate the files for AzureAD and MSOnline. There should be three for each with the extensions .syntax, .alias, .cmdlets.
See if they are of zero (0) size, if so, please let us know.
If not, please zip these 6 files and attach the zip here or upload it here: https://www.sapien.com/support/upload
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
christian.pauli@pari.com
Posts: 5
Last visit: Mon Nov 08, 2021 3:17 am

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by christian.pauli@pari.com »

Hello Alexander,
this is right, I have only 0kb Files in the mentioned folder for the modules which aren't show any information in PS Studio. What can I do to fix this?
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by Alexander Riedel »

You can delete the zero KB file and try to import the modules again.
If it produces empty files again, please let us know. I have someone here try on our side to see what might have happened.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
christian.pauli@pari.com
Posts: 5
Last visit: Mon Nov 08, 2021 3:17 am

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by christian.pauli@pari.com »

Sorry for my late response. After deleting the 0 kb files and rebuild t he cache/restart the application, I will run in the exact same issue agian :-(
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by Alexander Riedel »

That means Powershell cannot load the modules when the cache builder tries to load them.
It can be that they are blocked, in a non-standard location, in a location where the process has no access or assorted other issues.
Unfortunately we cannot really determine that from here.
I am attaching the file here from my machine. Copy them in place, open the Cache Editor, make sure the modules in question are still checked and push "Build Cache"
Please let us know if that helps.
Attachments
cache files.zip
(27.07 KiB) Downloaded 240 times
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
christian.pauli@pari.com
Posts: 5
Last visit: Mon Nov 08, 2021 3:17 am

Re: Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Post by christian.pauli@pari.com »

Hello Alex,

this did the trick for me. Thank you so much for your help.

Best regards
Christian
This topic is 3 years and 7 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.