You can use the InitializeADforHosting procedure of the Managed Hosting namespace to create a Hosting organizational unit at the top level of the domain and remove the AuthenticatedUsers access control entry (ACE) from every top-level object of the domain.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
Important
<request>
<procedure>
<execute namespace="Managed Hosting" procedure="InitializeADforHosting">
<executeData>
<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
<name>Hosting1</name>
</executeData>
</execute>
</procedure>
</request>
The following input is valid for this request:
By using the <preferredDomainController> element, you can specify the domain controller you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
This information is optional. You are not required to include this element in the request.
<preferredDomainController>your primary domain controller.domain name extension</preferredDomainController>
By using the <name> element, you can specify the name of the hosting organization if it is other than "Hosting".
This information is optional. You are not required to include this element in the request.
<name>name of hosting organization</name>
The response to this procedure does not contain significant data.
Important