Solved

How to scan users Exchange accounts for a particulur rule?

Posted on 2014-10-17
5
124 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this video we show how to create an Address List 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 Organization >> Ad…
This video discusses moving either the default database or any database to a new volume.

810 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