4.13 Write into a Collection: Clear the Contents of the defaultDocument Section for Site1
-
var adminManager = WScript.CreateObject( "Microsoft.ApplicationHost.Wr itableAdminManager" ); adminManager.CommitPath = "MACHINE/WEBROOT/APPHOST"; var configSection = adminManager.GetAdminSection( "system.webServer/de faultDocument","MACHINE/WEBROOT/APPHOST" ); configSection.GetElementByName( "files" ).Collection.Clear(); adminManager.CommitChanges();