Friday, May 17, 2024
HomePowershellThe best way to set Junk Settings for Shared Mailboxes – SID-500.COM

The best way to set Junk Settings for Shared Mailboxes – SID-500.COM


Microsoft 365

When working with shared mailboxes, there’s a downside: the consumer linked to this mailbox can’t configure the Junk Mail Settings for this shared mailbox in Outlook itself. On this weblog submit I present the best way to configure the unsolicited mail settings for a shared mailbox utilizing the Exchangen On-line module and PowerShell.

Stipulations

When you’ve got not already performed so, set up the Trade On-line module. Open PowerShell and enter the next line.

Set up-Module -Title ExchangeOnlineManagement -Pressure -AllowClobber

Subsequent, we connect with Trade On-line.

Motion

In my case I exploit the Shared Mailbox gf@sid-500.com. Let’s do some checks to see what the unsolicited mail configuration appears to be like like.

Get-Mailbox -Id gf@sid-500.com | Get-MailboxJunkEmailConfiguration

As we are able to see there aren’t any blocked or trusted senders right here.

Now I’ll present an instance the best way to add trusted senders.

Set-MailboxJunkEMailConfiguration –Id "gf@sid-500.com" `
–TrustedSendersAndDomains "sid-500.at","microsoft.com"

To undo what was configured earlier than you’ll be able to run the next command.

Set-MailboxJunkEmailConfiguration -Id "gf@sid-500.com" `
-TrustedSendersAndDomains @{Take away="bildung.at","sek1@bildung.at"}

Final however least: If you wish to configure this settings on all shared mailboxes, simply run this command.

Get-Mailbox -RecipientTypeDetails SharedMailbox | Set-MailboxJunkEMailConfiguration ...

Hope this was useful.

Printed by Patrick Gruenauer

Microsoft MVP on PowerShell [2018-2023], IT-Coach, IT-Guide, MCSE: Cloud Platform and Infrastructure, Cisco Licensed Academy Teacher.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments