Skip to content

Commit 82c8b40

Browse files
committed
Updated Get-MailboxJunkEmailConfiguration
Per Issue #1569
1 parent df93f5f commit 82c8b40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exchange/exchange-ps/exchange/antispam-antimalware/Get-MailboxJunkEmailConfiguration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ This example returns the junk email configuration for the user named David Pelto
4444

4545
### -------------------------- Example 2 --------------------------
4646
```
47-
$AllUsers = Get-Mailbox -ResultSize unlimited RecipientTypeDetails UserMailbox; $AllUsers | foreach {Get-MailboxJunkEmailConfiguration -Identity $_.Identity} | Where {$_.Enabled -eq $false} | Format-Table -Auto Identity,Enabled
47+
$AllUsers = Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox; $AllUsers | foreach {Get-MailboxJunkEmailConfiguration -Identity $_.Identity} | Where {$_.Enabled -eq $false} | Format-Table -Auto Identity,Enabled
4848
```
4949

50+
5051
This example returns a summary list of all mailboxes in your organization where the junk email rule is disabled. The first command stores all user mailboxes in a variable. The second command parses through the mailboxes and returns the FQDN of the mailboxes where the junk email rule is disabled.
5152

5253
To return all mailboxes where the junk email rule is enabled, change the value $false to $true. To return a mixed list of mailboxes where the junk email rule is enabled and disabled, remove the "| Where {$\_.Enabled -eq $false " part of the second command.

0 commit comments

Comments
 (0)