Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 8719

New-InboxRule -MoveToFolder cant find folder

$
0
0

Hi there,

I was already looking to the other similar issues here about -MoveToFolder but non of the solutions works for me with Exchange2013.

Goal: Provisioning a Rule which checks the header and moves mails to a folder.

Manually I can achieve that by ECP without any problem.

Now I used

$userName = john.doe $dest = 'archiv'+$userName

New-InboxRule $userName -MoveToFolder $dest -HeaderContainsWords $userName -StopProcessingRules $true

Getting the error:

Postfachordner "archiv:\john.doe" kann nicht gefunden werden. Stellen Sie sicher, dass der Name richtig
eingegeben wurde. Ursache: Der Vorgang konnte nicht ausgeführt werden, weil 'archiv:\john.doe' nicht
gefunden wurde.
    + CategoryInfo          : NotSpecified: (:) [New-InboxRule], ManagementObjectNotFoundException+ FullyQualifiedErrorId : [Server=VM-EXCHANGE01,RequestId=2927020c-b290-4ab6-9a78-9dbecaa5ee91,TimeStamp=26.07.201
   3 21:41:45] B6933170,Microsoft.Exchange.Management.RecipientTasks.NewInboxRule

(saying: that the mailboxfolder could not be found.)

  • The folder is existing definitely!
  • Get-MailboxFolder -recurse by the archiv-user himself is working!
[PS] C:\Windows\system32>get-mailboxfolder -recurse

Name                                    FolderPath                              HasSubfolders
----                                    ----------                              -------------
Oberste Ebene des Informationsspeichers {}                                      True
Aufgaben                                {Aufgaben}                              False
Entwürfe                                {Entwürfe}                              False
Gelöschte Elemente                      {Gelöschte Elemente}                    False
Gesendete Elemente                      {Gesendete Elemente}                    False
Journal                                 {Journal}                               False
Junk-E-Mail                             {Junk-E-Mail}                           False
Kalender                                {Kalender}                              False
Kontakte                                {Kontakte}                              True
Notizen                                 {Notizen}                               False
Postausgang                             {Postausgang}                           False
Posteingang                             {Posteingang}                           True
john.doe                                {Posteingang, john.doe}                 True
Trash                                   {Trash}                                 False

  • I tried not using variables but typing the values
  • I tried already get-mailbox "archiv" | new-... with $_.Alias variable and $($_.Alias) variable
  • I tried it by a user of the group "enterprise administrators" (who have full access on the mailbox)
  • I tried it by the archiv user itself (because I read that you can use get-mailboxfolder only on your own mailbox and assumed it might be a problem in that direction...

Always the same result...I am going mad here!

Please, anybody with some ideas?



Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>