次の方法で共有


Quickly Generate XML List of Web Site’s Configuration

 

The Web Deployment utility allows the administrator to quickly generate a list of configuration details about the web site in a readable format. This is helpful in situations of troubleshooting a web sites behavior by quickly seeing most of the configuration for the site in an easy readable format.

The dump command is used in this situation to obtain information about the web site or other objects and outputs to an XML file for review.

msdeploy -verb:dump -source:appHostconfig="URLTest" -xml > c:\temp\URLTestDetails.xml

The dump operation can be used to obtain configuration details for the complete server, web applications, and application pool.

Entire Server:

msdeploy -verb:dump -source:webserver -xml > c:\temp\EntireServer.xml

Application Only:

msdeploy -verb:dump -source:iisApp="<website1>/<App1>" -xml > c:\temp\App1.xml

Application Pool:
msdeploy -verb:dump -source:appPoolConfig=DefaultAppPool -xml > c:\temp\DefaultAppPool.xml

Please note, this does not take the place of viewing the applicationhost.config file and the output is a representation of site’s configuration in Web Deploy’s layout.

Comments

  • Anonymous
    October 15, 2014
    Can you connect to a remote machine and retrieve the details?

  • Anonymous
    October 16, 2014
    Yes you can! You just need to use the computername provider technet.microsoft.com/.../dd569001(v=WS.10).aspx Getting Web Deploy (msdeploy) set up for remote access is more involved than just running it locally. I'd suggest just doing it locally for the moment. That can be quite a chore to do correctly.

  • Anonymous
    October 16, 2014
    In order to obtain the information on a remote server, the web deploy remote service must be installed and started. Here is the link to the information on how to install technet.microsoft.com/.../dd569087(v=WS.10).aspx