Solved

Exchange 2010: copy inbox rules between mailboxes

Posted on 2011-03-08
6
2,727 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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 3

Author Comment

by:mpilarczyk
Comment Utility
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
Comment Utility
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
Comment Utility
agreed that's why i told you it is teadious :)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article will help you understand what HashTables are and how to use them in PowerShell.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now