Iis – Select all sites in IIS manager

iisiis-7web-serverwindows-server-2008

I just import a IIS config with 50 sites.

I will delete all of these sites several times to make new tests.

Currently I just delete them one by one…

I have not found how to select all sites to remove them in one hit.

Best Answer

You should be able to do:

cd %systemroot%\system32\inetsrv\

and then

appcmd list site /xml | appcmd delete site /in

To delete all of the sites, although I'm not sure. If it works it would be faster.

Learn more about piping appcmd here: http://blogs.iis.net/ksingla/archive/2007/06/17/things-you-can-do-by-piping-appcmd-commands.aspx