Page 1 of 1

Powershell Studio 2020 did not Expand the AzureAD + MSOnline Modules

Posted: Wed Jul 22, 2020 6:05 am
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 2036 times
Screen-22.07.2020-0006.jpg
Screen-22.07.2020-0006.jpg (15.48 KiB) Viewed 2036 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 2031 times
Help would be really nice for nicer coding workflow.

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

Posted: Wed Jul 22, 2020 7:50 am
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 2022 times
Close the cache editor. Then reload the cache into PowerShell Studio:
SPS_Reload-Cache.png
SPS_Reload-Cache.png (30.19 KiB) Viewed 2022 times

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

Posted: Wed Jul 22, 2020 11:42 am
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

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

Posted: Thu Jul 23, 2020 8:57 am
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

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

Posted: Mon Jul 27, 2020 12:23 am
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?

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

Posted: Mon Jul 27, 2020 6:13 am
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.

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

Posted: Wed Aug 05, 2020 2:37 am
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 :-(

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

Posted: Wed Aug 05, 2020 9:02 am
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.

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

Posted: Fri Aug 07, 2020 7:23 am
by christian.pauli@pari.com
Hello Alex,

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

Best regards
Christian