Share via


ManagedSharePoint2007::ModifyServiceAccountDirectoryPaths

The ModifyServiceAccountDirectoryPaths procedure modifies the service Account Directory paths of all web applications on a target server.

Arguments

Input Arguments Required Description

<preferredDomainController>

Yes

The name of the domain controller to use for Active Directory operations.

<target>

Yes

The URL of the Windows SharePoint administration site. The SharePoint provider uses this URL as the target for issueing provisioning requests. It is important that you ensure that this is both a valid URL and is the URL of a trusted Windows SharePoint Front-End server in your environment. This parameter should not be based on end user input. Please see the note above (need a clear way to identify the note) for more details.

<serviceAccountDirectoryPaths>

No

The new serviceAccountDirectoryPaths.

Output Arguments Description

<webApplications>

The container of the Web applications.

<webApplication>

The container of the URL and ServiceAcocuntDirectoryPath.

<URL>

The URL of the Web application.

<serviceAcountDirectoryPaths>

The Service account directory path of the Web application.

Remarks

Only DomainAdmin can call this procedure.

Sample Code

Example XML Request

<request> 
  <data> 
    <!--The name of the domain controller to use for AD operations--> 
    <preferredDomainController>AD01.Fabrikam.Com</preferredDomainController> 
    <!--The URL of the WSS administration site--> 
    <target>https://collab01:8080</target> 
    <!--New serviceAccountDirectoryPaths--> 
    <serviceAccountDirectoryPaths>CN=Uses,DC=Fabrikam,DC=Com</serviceAccountDirectoryPaths> 
  </data> 
  <procedure> 
    <execute namespace="ManagedSharePoint2007" procedure="ModifyServiceAccountDirectoryPaths" impersonate="1"> 
      <before source="data" sourcePath="preferredDomainController" destination="executeData" mode="move" /> 
      <before source="data" sourcePath="target" destination="executeData" mode="move" /> 
      <before source="data" sourcePath="serviceAccountDirectoryPaths" destination="executeData" mode="move" /> 
      <after source="executeData" destination="data" mode="merge" /> 
    </execute> 
  </procedure> 
</request>

Example XML Response

<response> 
  <data> 
    <!--The name of the domain controller to use for AD operations--> 
    <preferredDomainController>AD01.Fabrikam.Com</preferredDomainController> 
    <!--The URL of the WSS administration site--> 
    <target>https://collab01:8080</target> 
    <!--New serviceAccountDirectoryPaths--> 
    <serviceAccountDirectoryPaths>CN=Uses,DC=Fabrikam,DC=Com</serviceAccountDirectoryPaths> 
    <!--The container of web applications--> 
    <webApplications> 
      <!--webApplication--> 
      <webApplication> 
        <URL>https://collab01:80</URL> 
      </webApplication> 
    </webApplications> 
  </data> 
</response>

Applies To

Windows SharePoint Services Provider API for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::GetServiceAccountDirectoryPaths