question

DevsCS-9235 avatar image
0 Votes"
DevsCS-9235 asked WilliamFulmer-3838 answered

Need to set MsolCompanySettings but unable to load Connect-MsolService

Hello,

Ultimately I want to allow email verified users by setting Set-MsolCompanySettings -AllowEmailVerifiedUsers $true.

So I run the Azure PowerShell from Azure Cloud Shell (run from my browser).

When entering command Set-MsolCompanySettings -AllowEmailVerifiedUsers $true I get: Set-MsolCompanySettings: You must call the Connect-MsolService cmdlet before calling any other cmdlets.

So I enter Connect-MsolService and I get

Connect-MsolService: Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=*****'. The system cannot find the file specified. Connect-MsolService: Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=*****'. The system cannot find the file specified

I already tried to re-install MSOnline to no avail.

Any ideas?

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered MaximilianoSalamone-6683 commented

The module cannot be run from Azure Cloud Shell. You need a Windows PowerShell host for it.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, could you elaborate? I have the same issue. Thanks

0 Votes 0 ·
WilliamFulmer-3838 avatar image
0 Votes"
WilliamFulmer-3838 answered

Correct. This also does not work on MacOS PowerShell. This requires a Windows OS with the Sign-In Assistant Module loaded.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.