Modifying a Web site by using XML

Use the ModifyWebSite procedure of the Managed IIS namespace to modify the properties of a Web site.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the ModifyWebSite procedure

<request>
  <procedure>
	 <execute namespace="Managed IIS" procedure="ModifyWebSite">
	 <executeData>
		 <IISPath>IIS://myMachine/W3SVC/4</IISPath>
		 <preferredDomainController>myPrimaryDC.contoso.com </preferredDomainController>
		 <properties>
		 <Property name="AccessRead">False</Property>
		 <Property name="AccessWrite">False</Property>
		 </properties>
		 <runState>1</runState>
	</executeData>
	</execute>
  </procedure>
</request>

Input for ModifyWebSite

The following input is valid for this request:

Typical response for ModifyWebSite

The response to this procedure does not contain significant data.

Important