IAdmExchangeMailboxOps
The IAdmExchangeMailboxOps interface allows you to create and delete Exchange mailboxes.
Inheritance: IAdmExchangeMailOps
Methods
-
Method
-
Description
-
CreateMailbox()
-
Creates an Exchange mailbox for the user.
-
DeleteMailbox()
-
Disables the mailbox of the user and removes the user's Exchange attributes from Active Directory.
Details
CreateMailbox()
Creates an Exchange mailbox for the user.
void CreateMailbox(string alias, string mailboxDatabase)
Parameters
- alias - Specifies the email alias of the mailbox that you're enabling. It cannot exceed 64 characters and must be unique in the forest. An alias can contain characters from A to Z (uppercase or lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One or more periods can be embedded in an alias, but each period should be preceded and followed by at least one of the other characters.
- mailboxDatabase - Specifies the ADS path of the Exchange mailbox database for the new mailbox.
Examples
DeleteMailbox()
Disables the mailbox of the user and removes the user's Exchange attributes from Active Directory. The mailbox remains in Exchange, but is no longer associated with the user.
void DeleteMailbox()
Examples
Requirements
Minimum required version: 2010.2