Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to scan users Exchange accounts for a particulur rule?

Posted on 2014-10-17
5
Medium Priority
?
144 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 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

916 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