?
Solved

Exchange 2010: copy inbox rules between mailboxes

Posted on 2011-03-08
6
Medium Priority
?
3,134 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
[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
  • 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

801 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