IAdmExchangeRemoteMailboxOps3
The IAdmExchangeRemoteMailboxOps3 interface extends the IAdmExchangeRemoteMailboxOps interface with the ability to enable shared remote mailboxes.
Inheritance: IAdmExchangeRemoteMailboxOps2
Methods
-
Method
-
Description
-
EnableRemoteMailboxEx2()
-
Enables a remote mailbox for the user.
Details
EnableRemoteMailboxEx2()
Enables a remote mailbox for the user.
void EnableRemoteMailboxEx2(string remoteRoutingAddress,
string alias,
bool equipment,
bool room,
bool shared,
bool archive,
string archiveName,
string primarySmtpAddress)
Parameters
- remoteRoutingAddress - Specifies the SMTP address of the remote mailbox in Microsoft 365 (e.g. username@mycompany.mail.onmicrosoft.com). If you set the parameter to
null
, an address will be generated automatically by Exchange. - alias - Specifies an email alias for the mailbox. An alias can contain characters from A to Z (uppercase or lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. If the parameter is set to
null
, the alias will be generated automatically. - equipment - When set to
true
, the method creates an equipment mailbox. - room - When set to
true
, the method creates a room mailbox. - shared - When set to
true
, the method creates a shared mailbox. - archive - When set to
true
, the method creates a mailbox archive. This parameter can only be used if theremoteRoutingAddress
parameter is set tonull
, in other words, if a user already has a remote mailbox. - archiveName - Specifies a name for the mailbox archive. If the archive name is set to
null
, it will be generated automatically by Exchange. The parameter is taken into account only if thearchive
parameter is set totrue
. - primarySmtpAddress - Specifies a primary SMTP address for the mail user that represents the mailbox in on-premises Exchange organization. If the parameter is set to
null
, the address will be generated automatically based on the default address policy of the Exchange organization.
Requirements
Minimum required version: 2019.2