Skip to content

Commit a062eb3

Browse files
authored
Update Get-MailboxJunkEmailConfiguration.md
Updates per Issue #1861
1 parent 3420f62 commit a062eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ 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 $_.UserPrincipalName} | Where {$_.Enabled -eq $false} | Format-Table -Auto Identity,Enabled
4848
```
4949

5050
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.

0 commit comments

Comments
 (0)