Use the QueryResourcesByWebSite procedure of the IIS Resource Manager namespace to return all Web site resources that are currently being used by a particular Web site.
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="QueryResourcesByWebSite">
<executeData>
<IISPath>IIS://MyServer/W3SVC/7</IISPath>
</executeData>
<after source="executeData" destination="data" sourcePath="webSite"/>
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <IISPath> tag, you must specify the Internet Information Services (IIS) path of the Web site, in the form IIS://machine/W3SVC/N. This is used as a unique identifier that distinguishes it from other Web sites.
<IISPath>IIS://computer name/W3SVC/N</IISPath>
This request returns the name of the server hosting the Web site, the Internet Protocol (IP) address of the Web site, and, in the <port> tag, the ports (if any) owned by the Web site.
Note
The request also returns the location of the disk volume associated with the Web site and the disk volume storage (in megabytes) allocated to the Web site.
<response>
<data>
<webSite>
<serverName>machine04</serverName>
<IPAddress>
<address>157.60.0.1</address>
<portOwned>80</portOwned>
</IPAddress>
<volume>
<location>c:</location>
<megabytes>21000</megabytes>
</volume>
</webSite>
</data>
</response>
Important