Exchange 2007 Resource Manager::QueryConsumerMailboxesByMailstore

This procedure returns a listing of consumer mailboxes for a specified store.

Arguments

Input Arguments Required Description

<preferredDomainController>

Yes

The Fully Qualified Domain Names (FQDN) or IP Address of the domain controller to use for this procedure.

<mailStore>

No

The container element for each set of child mailstore properties elements.

<mailStore/ mailStoreName>

No

The name of the mailstore. This name must be unique amongst all of the mailbox stores in the Active Directory tree. A naming scheme of Mailbox Store N (ServerName) where N is an integer that is unique on this server is recommended.

<mailStore/ serverName>

No

Required if the publicStore element is present. The NETBIOS name of the Exchange server.

Output Arguments Description

<users>

Container element for a collection of user elements.

<users/ user>

Container element for a single instance of an organization's property elements.

<users/ user/ GUID>

The GUID for the public store, mailstore, or mailbox..

<users/ user/ path>

The Lightweight directory access protocol (LDAP) path for the mailbox or organization.

<users/ user/ kilobytes>

The storage required or allocated to the mailbox.

Remarks

Security

The caller must be at least a member of role: UserCreators

Sample Code

Example XML Request

<request>  
        <data>  
                <preferredDomainController>AD01.Fabrikam.com </preferredDomainController> 
        </data> 
        <procedure>  
                <execute namespace="Exchange 2007 Resource Manager" procedure="QueryConsumerMailboxesByMailStore" impersonate="1" >  
                        <before source="data" destination="executeData" mode="merge" /> 
                        <after source="executeData" destination="data" mode="merge" /> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

<response>  
        <data>  
                <users>  
                        <user>  
                                <GUID>6FA8EE79F158F64F881EEAB3235D61A4 </GUID> 
                                <path> LDAP://CN=user1@litwareinc.com,OU=Litwareinc,OU=ConsolidatedMessenger, OU=Hosting,DC=fabrikam,DC=com </path> 
                                <kilobytes>10000 </kilobytes> 
                        </user> 
                </users> 
        </data> 
</response> 

Applies To

Exchange 2007 Resource Manager Namespace for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0