Solved

How to scan users Exchange accounts for a particulur rule?

Posted on 2014-10-17
5
114 Views
Last Modified: 2014-11-04
I need to somehow scan all my users exchange 2007 mailboxes to see who is running a rule to forward emails.

Any way to do this in power shell of in EMC?
0
Comment
Question by:rdefino
  • 3
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
David Carr earned 500 total points
ID: 40387226
You can try the following in PowerShell

foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i.DistinguishedName | where {$_.RedirectTo -or $_.ForwardTo -and -not ($_.description -match "If the message") } | fl MailboxOwnerId,Description >> rules.txt }

Open in new window

0
 

Author Comment

by:rdefino
ID: 40387271
I see bunch of these popping up. It that because the account it's checking doesn't have the rule?

Get-InboxRule : The term 'Get-InboxRule' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:55
+ foreach ($i in (Get-Mailbox -ResultSize unlimited)) { Get-InboxRule -Mailbox $i. ...
+                                                       ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-InboxRule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 
LVL 9

Expert Comment

by:David Carr
ID: 40387342
I am sorry you can only use get-inboxrule for Exchange 2010 and beyond.
0
 

Author Comment

by:rdefino
ID: 40387387
ahh, so there is no way to check then for 2007?
0
 
LVL 9

Expert Comment

by:David Carr
ID: 40395009
There is not a way to check Exchange 2007 with PowerShell or the EMC
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Sometimes Outlook might have problems sending a message. There may be various causes- corrupted PST, AV scanner etc. The message, instead of going to the Sent Items folder, sits in the Outbox indefinitely. To remove it you can use a free tool cal…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
This video discusses moving either the default database or any database to a new volume.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now