delete a message from all the mailboxes
Hi.I tried to delete a message from all the mailboxes. The command I used was:get-mailbox -database "Server1\First Storage Group\Mailbox database" | export-mailbox -subjectkeywords "Chicago" -startdate "29/10/2009 0:00:00" -EndDate "29/10/2009 23:59:59" -includefolders "\Inbox" -targetfolder "Folder1" -targetmailbox supportmailbox1 -deletecontent -confirm:$trueHowever, after working for a few minutes, thecommand stops and an event is issued. The event is:Log Name: ApplicationSource: MSExchangeISDate: 02/11/2009 9:46:34Event ID: 9646Task Category: GeneralLevel: ErrorKeywords: ClassicUser: N/AComputer: server1.mydomain.localDescription:Mapi session "/o=Company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=supportmailbox1" exceeded the maximum of 500 objects of type "objtFolder".Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="MSExchangeIS" /> <EventID Qualifiers="49158">9646</EventID> <Level>2</Level> <Task>6</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2009-11-02T08:46:34.000Z" /> <EventRecordID>401855</EventRecordID> <Channel>Application</Channel> <Computer>server1.mydomain.local</Computer> <Security /> </System> <EventData> <Data>/o=Company/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=supportmailbox1</Data> <Data>500</Data> <Data>objtFolder</Data> <Binary>5B444941475F4354585D000016000000FF682A00000000000002080000003A67F01F02000000</Binary> </EventData></Event> Please, could you tell me how do you manage to erase a message from all the mailboxes? My script works if the number ofmailboxes is not very large.Thank you very much,Mig. En.
November 25th, 2009 3:44pm

You could temporarily raise the limit and then set it back after removing the message:http://support.microsoft.com/?kbid=830829Your Exchange Server 2003 computer may stop responding after a MAPI client opens more than the default value of certain server objects( applies to 2007 as well)
Free Windows Admin Tool Kit Click here and download it now
November 25th, 2009 5:20pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics