Forum Discussion
ByDesign1977
May 20, 2020Brass Contributor
List Shared mailboxes with signin enabled and then block signin using powershell
Hi All Could anyone advise me on how I can run powershell against Exchange Online to list all shared mailboxes with sigin enabled and then how to block signin using powershell? Would be a gre...
VasilMichev
May 20, 2020MVP
The above should work, but what's the end goal here? Shared mailboxes are accessed via delegate permissions, you're not supposed to login to them directly by using the username/password corresponding to the shared mailbox account, so it doesn't make that big of a difference if the account is enabled or not. Technically, they are all enabled by default, and technically you can indeed login to them, although it's against the license terms.
HidMov
May 20, 2020Iron Contributor
Not that I disagree, but Microsoft make a point of recommend disabling the sign in for shares mailboxes
https://docs.microsoft.com/en-us/microsoft-365/admin/email/create-a-shared-mailbox
https://docs.microsoft.com/en-us/microsoft-365/admin/email/create-a-shared-mailbox