[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3332
  • Last Modified:

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.
0
mpilarczyk
Asked:
mpilarczyk
  • 3
  • 3
1 Solution
 
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
 
AkhaterCommented:
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
SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

 
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

Featured Post

SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now