How can I iterate through all the websites hosted on an IIS 6.0 (Windows Server 2003) using powershell?
Is there a way to do it using WmiObject ?
Thanks!
iis-6powershell
How can I iterate through all the websites hosted on an IIS 6.0 (Windows Server 2003) using powershell?
Is there a way to do it using WmiObject ?
Thanks!
Best Answer
List them using ADSI or WMI as follows --
To add a new HttpCustomHeader as you've mentioned in your comment, I think you can use the following technique. Please test thoroughly for I did not.