Identifying all Web sites with IIS resource allocations by using XML

Use the QueryAllWebSites procedure of the IIS Resource Manager namespace to return all Web sites that have been allocated from IIS Resource Manager.

This procedure runs as the Microsoft Provisioning Framework (MPF) service account in order to make calls to the Resource Manager database.

Example of a request that calls the QueryAllWebSites procedure

<request>
 <procedure>
   <execute namespace="IIS Resource Manager" procedure="QueryAllWebSites">
	 <after source="executeData" sourcePath="IISPaths" destination="data" />
   </execute>
 </procedure>
</request>

Input for QueryAllWebSites

No input is required.

Typical response for QueryAllWebSites

This request returns a list of Internet Information Services (IIS) paths, each of which identifies a Web site.

<response>
 <data>
   <IISPaths>
	 <IISPath>IIS://MyServer/W3SVC/6</IISPath>
	 <IISPath>IIS://MyServer/W3SVC/5</IISPath>
   </IISPaths>
 </data>
</response>

Important