Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Delete All Calendar Items

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Migration >> Delete All Calendar Items Page: [1]
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
Delete All Calendar Items - 1.Aug.2008 9:36:04 AM   
rwisselink

 

Posts: 5
Joined: 24.Nov.2006
Status: offline
Hello,

I have done several Exchange 2007 migrations. At the moment I am doing a Lotus Notes migration to Exchange 2007. If you do a two step migration. (Export the same mailboxes two times) Then the changed calendar items between those two dates are imported double.

So I want to clear all calendar items of all user mailboxes before doing the second import action.

Does any one know how to accomplish this??? For example with a powershell command.

I don't want to do it manually.

Thanks for your help.
Remco Wisselink
rwisselinkatgmail.com
Post #: 1
RE: Delete All Calendar Items - 1.Aug.2008 5:41:00 PM   
Elan Shudnow

 

Posts: 575
Joined: 4.Jan.2007
From: Chicago, IL
Status: online
You can use Export-Mailbox.
Something like get-mailbox where {$_.ObjectClass -NotMatch '(SystemAttendantMailbox|ExOleDbSystemMailbox)'} | Export-Mailbox -IncludeFolders '\Calendar' -DeleteContent

I would explain the command but it looks like it's pretty self explanatory.  I believe even if you didn't put the part to exclude SystemAttendantMailbox|ExOleDbSystemMailbox that Export-Mailbox already does this due to my usage of it in the pass to mass delete all mail in a specific database withouto excluding and Exchange was fine and I didn't see it touching either mailboxes.

Hope that helps,

_____________________________

Elan Shudnow
http://www.shudnow.net

(in reply to rwisselink)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Migration >> Delete All Calendar Items Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts