Urgent Exchange Vs AD
17928Dec 8 2009 — edited Dec 9 2009Hi Experts,
In our company we have customized connector for AD and Exchange; Here is the how the exchange provision works; THis resourcce depends on AD; we always create user accounts in default mailbox. based on mailbox name we build and add all other related attributes to AD; mail , mail nickname , homemdb, legachyexchange, msexchhomeservername, proxyaddresses etc. when the person disable's we remove all those attributes in AD the mailbox of the user is in diconnected state; there is a job runs on exchange delete those disconnected mailboxes after 60days; if the user comes back we re-enable the accounts; if he comes back under manager different position number we create; new accounts; during that time I want to check exchange ; if the user has any previous mailboxes in disconneted state if yes I have to get that mailbox name and add related attributes to his AD account if not I have to provion the new exchange resource in constant store. that we have in lookup table.
how do I check if the person has previous mailbox or not? we delete all exchange related attributes when a person is disabled and moved 000 ou in AD.
if any code or API is available to check existing msexchmailboxguid or maibox FOR THAT USR