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

x
?
Solved

Exchange 2010: copy inbox rules between mailboxes

Posted on 2011-03-08
6
Medium Priority
?
3,255 Views
Last Modified: 2012-05-11
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.
0
Comment
Question by:mpilarczyk
  • 3
  • 3
6 Comments
 
LVL 49

Expert Comment

by:Akhater
ID: 35072460
get-inboxrule new-inboxrule should work however it will be very tedious unless you have an idea about what you want
0
 
LVL 3

Author Comment

by:mpilarczyk
ID: 35080368
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
 
LVL 49

Accepted Solution

by:
Akhater earned 1500 total points
ID: 35080530
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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 3

Author Comment

by:mpilarczyk
ID: 35080922
This won't help me a lot, basically I can write whole new inbox rule at the same time :)
But thanks for answer :)
0
 
LVL 3

Author Closing Comment

by:mpilarczyk
ID: 35080949
This won't help me a lot, basically I can write whole new inbox rule at the same time :)
0
 
LVL 49

Expert Comment

by:Akhater
ID: 35081293
agreed that's why i told you it is teadious :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
In this video we show how to create an email address policy 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 Mail Flow…
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…

773 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