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.
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.
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
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