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
Solved

How to scan users Exchange accounts for a particulur rule?

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

Suggested Solutions

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Find out what you should include to make the best professional email signature for your organization.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

856 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