cd %windir%\System32\inetsrv
appcmd /?
Display all applications
appcmd list APP
Display all sites
appcmd list SITE
Display all applications belonging to a site
appcmd list APP /site.name:MySiteName
Find all virtual directories with the specified path
appcmd list VDIR /path:/GlobalControls
Output to XML, then open in Excel for formatted columns
appcmd list vdir /xml > "C:\AppcmdOutput.xml"
Create an IIS Command Prompt Shortcut:
- Create new shortcut
- Target: %comspec% /k "appcmd /?"
- Start in: %windir%\System32\inetsrv
To combine commands, see:
Do complex IIS management tasks easily with AppCmd command piping « Mike Volodarsky's Blog Mike Volodarsky's Blog
http://mvolo.com/do-complex-iis-management-tasks-easily-with-appcmd-command-piping/
References
"Getting Started with AppCmd.exe : Management Tool Options : Planning Your IIS 7 Architecture : The Official Microsoft IIS Site." Learn IIS7 : The Official Microsoft IIS Site. Web. 15 Aug. 2011.
<http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/>.
<http://learn.iis.net/page.aspx/114/getting-started-with-appcmdexe/>.
"Appcmd.exe." MSDN – Explore Windows, Web, Cloud, and Windows Phone Software Development. N.p., n.d. Web. 10 May 2012.
<http://msdn.microsoft.com/en-us/library/cc772200(v=ws.10).aspx>.
<http://msdn.microsoft.com/en-us/library/cc772200(v=ws.10).aspx>.
No comments:
Post a Comment