Jobba med Inboxregler

Lista alla Inboxregler

foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | fl MailboxOwnerID,name }

Lista alla Inboxregler som har delete message

foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.DeleteMessage} | fl MailboxOwnerID }