How to update existing IIS 6 Web Site using PowerShell
I am trying to create a PowerShell script that creates a new IIS 6 web site and sets things like App Pool, Wildcard application maps, ASP.NET version, etc. After extensive search on the Internet I found a script that allows me to create a new Web Site but not to modify all the properties I need. $newWebsiteName = "WebSiteName" $newWebsiteIpAddress = "192.168.1.100" $newWebSiteDirPath = "c:\inetpub\wwwroot\WebSiteName" $iisWebService = Get-WmiObject -namespace "root\MicrosoftIISv2" -class "IIsWebService" $bindingClass = [wmiclass]'root\MicrosoftIISv2:ServerBinding' $bindings = $bindingClass