Re: How to purge a mailbox programatically



Nope, you are correct from everything I have heard from MSFT on the topic.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm



Glen Scales [MVP] wrote:
There are no code samples that I have ever seen for Exchange 2000 I think you would need to use some low level Exmapi code to delete the mailbox in the store but im not really sure. My guess is that this WMI class is calling a routine in a private serverside library the hard part is finding documentation for all the steps that library performs when it does a purge. Maybe somebody else has an idea ?

Cheers
Glen
"Chris" <chrisforng@xxxxxxxxxxxxxxxx> wrote in message news:uxCH88sfGHA.1324@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Glen!! that is helpful. How about Exchange 2000?
My app needs to work on both 2000 and 2003.

Thanks,
Chris

"Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx> wrote in message news:%23SGrUUsfGHA.3364@xxxxxxxxxxxxxxxxxxxxxxx
If you using Exchange 2003 you can do this using WMI and the Exchange_mailbox class's purge method see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_wmiref_me_Exchange_MailboxPurge.asp

Cheers
Glen

"Chris" <chrisforng@xxxxxxxxxxxxxxxx> wrote in message news:ektTWxrfGHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

From Exchange System Manager, I can right click on a deleted mailbox and purge it.
How can I do that programatically? I cannot find anything in MAPI or CDO.

Thanks,
Chris





.



Relevant Pages