0

Is there anyway that I could get names of all sites hosted on a IIS web server, to a text file?

Any command or any alternative?

Tried googling but couldnt find anything related.

Vysakh
  • 213
  • 2
  • 3
  • 10
  • See the answer here.. browse to http://serverfault.com/questions/573917/retrieve-names-of-all-sites-on-a-webserver – Vysakh Feb 10 '14 at 06:22

2 Answers2

0

Yes, there is a command:

appcmd list site

This will give you a list of all sites, similar to the (graphical) IIS Management view. You can of course send the output to a text file:

appcmd list site > mysites.txt
Rob
  • 11,492
  • 14
  • 59
  • 94
0

In IIS6 you can use adsutils. The enum parameter should do the job.

Cscript.exe adsutil.vbs ENUM /P W3SVC

Check out these Posts: MS Documentation, Similar Question

Community
  • 1
  • 1
Fabian
  • 1,886
  • 14
  • 13