In IIS7, is it possible to filter the results of the appcmd list sites command to, for example, all sites running on port 443?

For example:

/appcmd list sites /bindings:http://216.123.123.123:443:*wildcard

As it is, I can only filter on the exact binding such as:

/appcmd list sites /bindings:http://216.123.123.123:443:some.hostheader.com
link|improve this question

feedback

1 Answer

up vote 0 down vote accepted

Not in AppCmd but why not pipe it into FINDSTR, for example:

appcmd list sites | findstr /spin hostheader.com

or appcmd list sites | findstr /spin 216.123.123.123:443

link|improve this answer
Perfect! Just what I was looking for. – Ted Jul 30 '10 at 21:53
One caveat is that for the IP you need to "appcmd list sites | findstr 216.123.123.123". – Ted Jul 30 '10 at 22:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.