Solved

Exchange 2010 SP1 New-InboxRule issue

Posted on 2011-03-11
6
2,564 Views
Last Modified: 2012-05-11
Hi guys,

Migrated to Exchange 2010 and need to create new Outlook Server-Side rule to move the tagged messages into Subfolder.

Successfully created rule to implement for individual users:

New-InboxRule "eBrochure" -Mailbox "AVM" -SubjectContainsWords "eBrochure:" -MoveToFolder "AVM:\eBrochure"

But when I'm trying to apply it to all users on the server I'm getting error. Here is the code:


$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-InboxRule "eBrochure" -Mailbox $_.Name -SubjectContainsWords "eBrochure:" -MoveToFolder "\eBrochure"}


Error is:

The specified mailbox "\eBrochure" doesn't exist.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-InboxRule], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : F38C5D83,Microsoft.Exchange.Management.RecipientTasks.NewInboxRule

The specified mailbox "\eBrochure" doesn't exist.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-InboxRule], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : F38C5D83,Microsoft.Exchange.Management.RecipientTasks.NewInboxRule


Please advise what is wrong in my code.

Also, I craeted a custom managed folder in Exchange 2010. How to make it visible in user's Outlook's set of folders?

Thank you in advance!

Armen
0
Comment
Question by:aramagedon
  • 3
  • 3
6 Comments
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
please try this

$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-InboxRule -name "eBrochure" -Mailbox $_.Alias -SubjectContainsWords "eBrochure:" -MoveToFolder "$_.Alias:\eBrochure"}
0
 

Author Comment

by:aramagedon
Comment Utility
Just tried this. More promising but still getting multiple error on every box:

The specified mailbox "Dieter Meyer.Alias" doesn't exist.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-InboxRule], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : F489F465,Microsoft.Exchange.Management.RecipientTasks.NewInboxRule
0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
Comment Utility
oki now this

$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-InboxRule -name "eBrochure" -Mailbox $($_.Alias) -SubjectContainsWords "eBrochure:" -MoveToFolder "$($_.Alias):\eBrochure"}
0
Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

 

Author Comment

by:aramagedon
Comment Utility
Akhater!

Thanks much!!!! PERFECT!!!! I'm getting errors only on the mailboxes which don't have the folders on their mailboxes. So, question is to how to create subfolders first? Is it something you can do?

Here what I tried:

$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-ManagedFolder -name $($_.Alias) -FolderName "$($_.Alias):\eBrochure" -StorageQuota '50Mb' -Comment 'Messages in this folder are retained for 2 Weeks' -MustDisplayComment $true }


But it is creating a lot of Managed folders such DMR\Ebrochures
0
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
managed folders are not per user it should be enough to create one managed folder. I am afraid I am not very familiar with managed folders so I won't be able to help on this one sorry...

Maybe try another question ?
0
 

Author Comment

by:aramagedon
Comment Utility
OK, Thanks much for your help!!!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

728 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

8 Experts available now in Live!

Get 1:1 Help Now