I'm trying to create a policy to empty the Deleted Items folder on all Resource Mailboxes every 5 days. I'm using http://social.technet.microsoft.com/Forums/en-IE/exchangesvradmin/thread/e680c9b1-d244-4815-8ed2-e2070e70c048 and http://www.networksteve.com/exchange/topic.php/Trouble_setting_up_a_managed_folder_policy_to_purge_deleted_item/?TopicId=25496&Posts=2 as a reference. However, I can't set the policy on the conference rooms because I can't get it to accept the policy command. I must have the syntax messed up, suggestions?
[PS] C:\Windows\system32>New-ManagedContentSettings -Name 'ResourceMailbox-DeletedItems' -FolderName 'Deleted Items' -MessageClass '*' -AgeLimitForRetention 5 -retentionaction DeleteandAllowRecovery - Retentionenabled $true Name MessageClass ManagedFolderName ---- ------------ ----------------- ResourceMailbox-Delete... * Deleted Items [PS] C:\Windows\system32>New-ManagedFolderMailboxPolicy -Name 'ResourceMailbox-DeletedItems Policy' -ManagedFolderLinks 'ResourceMailbox-DeletedItems' No managed folder named 'ResourceMailbox-DeletedItems' was found in Active Directory. Make sure the folder name is spelled correctly. + CategoryInfo : NotSpecified: (0:Int32) [New-ManagedFolderMailboxPolicy], ManagementObjectNotFoundException + FullyQualifiedErrorId : A06044F,Microsoft.Exchange.Management.Tasks.NewManagedFolderMailboxPolicy [PS] C:\Windows\system32>New-ManagedFolderMailboxPolicy -Name 'ResourceMailbox-DeletedItems Policy' -ManagedFolderLinks 'ResourceMailbox-DeletedItems' No managed folder named 'ResourceMailbox-DeletedItems' was found in Active Directory. Make sure the folder name is spelled correctly. + CategoryInfo : NotSpecified: (0:Int32) [New-ManagedFolderMailboxPolicy], ManagementObjectNotFoundException + FullyQualifiedErrorId : A06044F,Microsoft.Exchange.Management.Tasks.NewManagedFolderMailboxPolicy [PS] C:\Windows\system32>New-ManagedFolderMailboxPolicy -Name 'ResourceMailbox-DeletedItems Policy' -ManagedFolderLinks 'ResourceMailbox-DeletedItems' No managed folder named 'ResourceMailbox-DeletedItems' was found in Active Directory. Make sure the folder name is spelled correctly. + CategoryInfo : NotSpecified: (0:Int32) [New-ManagedFolderMailboxPolicy], ManagementObjectNotFoundException + FullyQualifiedErrorId : A06044F,Microsoft.Exchange.Management.Tasks.NewManagedFolderMailboxPolicy [PS] C:\Windows\system32>New-ManagedFolderMailboxPolicy -Name 'ResourceMailbox-DeletedItems Policy' -ManagedFolderLinks 'ResourceMailbox-DeletedItems' No managed folder named 'ResourceMailbox-DeletedItems' was found in Active Directory. Make sure the folder name is spelled correctly. + CategoryInfo : NotSpecified: (0:Int32) [New-ManagedFolderMailboxPolicy], ManagementObjectNotFoundException + FullyQualifiedErrorId : A06044F,Microsoft.Exchange.Management.Tasks.NewManagedFolderMailboxPolicy [PS] C:\Windows\system32>