Exchange 2007 Provider::MailEnableFolder
This method Mail-enables an existing public folder.
Arguments
Input Arguments | Required | Description |
---|---|---|
<preferredDomainController> |
Yes |
The domain controller to use for Active Directory actions. |
<path> |
Yes |
This parameter specifies the path\Name of the Public Folder to mail-enable. |
<emailAddresses> |
Yes |
This parameter specifies all the proxy addresses of the public folder. It includes the primary Simple Mail Transfer Protocol (SMTP) address as one of the proxy addresses. |
<emailAddresses/ value> |
Yes |
One or more proxy addresses. |
<emailAddressPolicyEnabled> |
No |
This parameter specifies whether the e-mail address policy for this mailbox is enabled. The default value is false. |
<server> |
No |
This parameter specifies the path of the hosted organization that contains the AL, GAL, and OAB as well-known-objects. By default it is the Lightweight directory access protocol (LDAP) parent container of the object. |
<hiddenFromAddressListsEnabled> |
No |
This parameter specifies whether this mailbox is hidden from other address lists. |
Remarks
Security
Rollback Method: MailDisableFolder
The caller must be at least a member of role: UserCreators.
Sample Code
Example XML Request
<request>
<data>
<!--The domain controller to use for Active Directory actions.-->
<preferredDomainController>AD01.Fabrikam.Com</preferredDomainController>
<!--Specifies the path\Name of the Public Folder to mail-enable.-->
<path>\AlpineSkiHouse\Legal</path>
<!--Specifies the proxy addresses of the mailbox. The primary Simple Mail Transfer Protocol (SMTP) address is the first in the list of proxy addresses.-->
<emailAddresses>
<!--One or more proxy addresses.-->
<value>legal@alpineskihouse.com</value>
</emailAddresses>
<!--Specifies whether the e-mail address policy for this mailbox is enabled. The default value is false.-->
<emailAddressPolicyEnabled>false</emailAddressPolicyEnabled>
<!--Specifies the server on which the public folder resides.-->
<server>EXMBXOAB01</server>
<!--Specifies whether this mailbox is hidden from other address lists.-->
<hiddenFromAddressListsEnabled>false</hiddenFromAddressListsEnabled>
</data>
<procedure>
<execute namespace="Exchange 2007 Provider" procedure="MailEnableFolder" impersonate="1">
<before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" />
<before source="data" sourcePath="path" destination="executeData" mode="move" />
<before source="data" sourcePath="emailAddresses" destination="executeData" mode="move" />
<before source="data" sourcePath="emailAddressPolicyEnabled" destination="executeData" mode="move" />
<before source="data" sourcePath="server" destination="executeData" mode="move" />
<before source="data" sourcePath="hiddenFromAddressListsEnabled" destination="executeData" mode="move" />
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Applies To
Exchange 2007 Provider Namespace for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
See also
Tasks
Hosted Email 2007::AddFolderPermission
Hosted Email 2007::DeleteFolder
Hosted Email 2007::MailEnableFolder
Hosted Email 2007::MailDisableFolder
Hosted Email 2007::ModifyFolder
Hosted Email 2007::RemoveFolderPermission