Exchange 2010: copy inbox rules between mailboxes

Is there a way to copy inbox rules from one mailbox to another using powershell?
I tried piping output from Get-InboxRule to New-InboxRule but it didn't work.
LVL 3
mpilarczykAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AkhaterConnect With a Mentor Commented:
no this will not work you will need to use variables like




$Rules = Get-InboxRule -Mailbox some_mailbox -Identity rule_id

$Rules | New-InboxRule -Mailbox other_mailbox -Name $_.Name -varx $_.varx etc....
0
 
AkhaterCommented:
get-inboxrule new-inboxrule should work however it will be very tedious unless you have an idea about what you want
0
 
mpilarczykAuthor Commented:
I'm just trying:
Get-InboxRule -Mailbox some_mailbox -Identity rule_id  | New-InboxRule -Mailbox other_mailbox -Name "Test"

Open in new window

And the result is:

The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
0
Building an Effective Phishing Protection Program

Join Director of Product Management Todd OBoyle on April 26th as he covers the key elements of a phishing protection program. Whether you’re an old hat at phishing education or considering starting a program -- we'll discuss critical components that should be in any program.

 
mpilarczykAuthor Commented:
This won't help me a lot, basically I can write whole new inbox rule at the same time :)
But thanks for answer :)
0
 
mpilarczykAuthor Commented:
This won't help me a lot, basically I can write whole new inbox rule at the same time :)
0
 
AkhaterCommented:
agreed that's why i told you it is teadious :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.