Exchange 2007 Resource Manager::QueryOrganizationsByMailstore

This procedure returns all of the organizations that own Exchange resources on a specified mail 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

The NETBIOS name of the Exchange server.

Note

Although parameters <mailStore>, <mailStore/ mailStoreName>, <mailStore/ serverName> are optional, one of them must be present.

Output Arguments Description

<organizations>

Container element for a collection of organization elements.

<organizations/ organization>

The Lightweight directory access protocol (LDAP) path of the organization or a container element for organization properties elements.

<organizations/ organization/ GUID>

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

<organizations/ organization/ path>

The LDAP path for the mailbox or organization.

<organizations/ organization/ megabytes>

The size of disk storage or the size of an adjustment.

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> 
        <mailstore> 
                <mailstoreName>mailbox Database </mailstoreName> 
                <serverName>HMCEX01</serverName> 
        </mailstore></data> 
        <procedure>  
                <execute namespace="Exchange 2007 Resource Manager" procedure="QueryOrganizationsByMailStore" impersonate="1" >  
                        <before source="data" destination="executeData" mode="merge" /> 
                        <after source="executeData" destination="data" mode="merge" /> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

<response>  
        <data>  
                <organizations>  
                        <organization>  
                                <GUID>6FA8EE79F158F64F881EEAB3235D61A4 </GUID> 
                                <path> LDAP://OU=AlpineSkiHouse,OU=ConsolidatedMessenger,OU=Hosting,DC=fabrikam,DC=com </path> 
                                <megabytes>2290 </megabytes> 
                        </organization> 
                </organizations> 
        </data> 
</response> 

Applies To

Exchange 2007 Resource Manager Namespace for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0