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.
<request>
<procedure>
<execute namespace="IIS Resource Manager" procedure="QueryAllWebSites">
<after source="executeData" sourcePath="IISPaths" destination="data" />
</execute>
</procedure>
</request>
No input is required.
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