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.
User avatar
christian.pauli@pari.com
Posts: 4
Joined: Fri Jun 19, 2015 10:47 pm

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 599 times
Screen-22.07.2020-0006.jpg
Screen-22.07.2020-0006.jpg (15.48 KiB) Viewed 599 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 594 times
Help would be really nice for nicer coding workflow.

User avatar
brittneyr
Site Admin
Posts: 501
Joined: Thu Jun 01, 2017 7:20 am

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 585 times
Close the cache editor. Then reload the cache into PowerShell Studio:
SPS_Reload-Cache.png
SPS_Reload-Cache.png (30.19 KiB) Viewed 585 times
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
christian.pauli@pari.com
Posts: 4
Joined: Fri Jun 19, 2015 10:47 pm

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: 7406
Joined: Tue May 29, 2007 4:43 pm

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: 4
Joined: Fri Jun 19, 2015 10:47 pm

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: 7406
Joined: Tue May 29, 2007 4:43 pm

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: 4
Joined: Fri Jun 19, 2015 10:47 pm

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: 7406
Joined: Tue May 29, 2007 4:43 pm

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) Not downloaded yet
Alexander Riedel
SAPIEN Technologies, Inc.