Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to scan users Exchange accounts for a particulur rule?

Posted on 2014-10-17
5
Medium Priority
?
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
To show how to generate a certificate request 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 Servers >> Certificates…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

670 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