Forum Discussion

SRMueller's avatar
SRMueller
Copper Contributor
Jun 11, 2021

Read/Write AzureAD Guest Self Signup via PowerShell

Setting the Guest user self-signup property via powershell is documented to be done via the Msonline module's `Set-MsolCompanySettings` cmdlet (-AllowAdHocSubscriptions) (documentation)

Now, I don't see a way to read this setting. There's Get-MsolCompanyInformation but no value for AdHocSubscriptions.

Also, the Msonline module is marked as deprecated and we should use AzureAD(-Preview) module instead.

But there I can't find the setting. It might be me just being unable to correctly search the documentation.

So my questions are:

  1.  how can I read the setting via powershell?
  2. what is the "new" way to set this setting when msonline module is deprecated?