appcmd Try It
Used to manage IIS. ie, recycle a Windows appPool
Version
Latest known: 10.0.14393.7962
Latest known: 10.0.14393.7962
Examples
2. List IIS virtual directories for a site name
appcmd.exe list vdir /app.name:"#SITENAME#/"" /config:* /xml
Try it
- List all IIS sites (XML)
Run 'appcmd list sites /xml' to enumerate every IIS site configured on the host. /xml emits a parseable XML document instead of appcmd's default 'SITE "name" (id:N, bindings:...)' summary line. Note: appcmd lives under c:\Windows\SysWOW64\inetsrv\ and only ships with the IIS management tools - if IIS isn't installed on this host the demo will report the EXE as missing. - List all IIS application pools (XML)
Run 'appcmd list apppool /xml' to enumerate every IIS application pool with its current state, .NET CLR version, and pipeline mode. Same /xml flag as the sites demo, so the output is one APPPOOL element per pool with all attributes inline. Useful before chaining a 'recycle apppool /apppool.name:...' call.
Agree to terms to run demos.