Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:*wildcard

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

/appcmd list sites /bindings:
share|improve this question

2 Answers 2

up vote 4 down vote accepted

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

appcmd list sites | findstr /spin

or appcmd list sites | findstr /spin

share|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". –  Ted Jul 30 '10 at 22:21

Yes you can do this with AppCmd:
%windir%\system32\inetsrv\AppCmd.exe list site /bindings:http/*:8315:

share|improve this answer
this checks for strict equality though and will not display http/*:80:,net.tcp/808:* for example –  Răzvan Panda Sep 20 '14 at 17:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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