Share via


Hosted Exchange::SetCustomerDatabaseLocation

This procedure sets the location of the Customer Plan database in the system registry.

Arguments

Input argument Required Description

<serverName>

Yes

The name of computer where database located.

<databaseName>

Yes

The name of the customer plan database.

<preferredDomainController>

Yes

Remarks

Provisioning Steps

  1. Write server name and database name to registry:

    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning\ CustomerPlansDb\Customer Database

    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Provisioning \CustomerPlansDb\Customer Database Server

Security

  • Impersonate caller.

  • Call restricted to Domain Admins.

Sample Code

Example XML Request

<request> 
        <procedure>     
                <execute namespace="Hosted Exchange" procedure="SetCustomerDatabaseLocation" impersonate="1">       
                        <executeData>         
                                <serverName>(local)</serverName>         
                                <databaseName>HeCustomerDb</databaseName>         
                                <preferredDomainController>AD01.fabrikam.com</preferredDomainController>       
                        </executeData>       
                        <after source="executeData" destination="data" mode="merge" />     
                </execute>   
        </procedure> 
</request>

Applies To

Hosted Exchange Namespace API for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Hosted Exchange::InitializeCustomerPlanDatabase