Here is a spot of code that may help you start, this is taken from a VBScript uses to modify script/application mappings on a IIS website:
Code:
Option Explicit
Dim ScriptMappings
Dim oIIS, oIISSite, oIISRoot
Set oIIS = GetObject("IIS://LOCALHOST/W3SVC")
For Each oIISSite In oIIS
If (oIISSite.Class = "IIsWebServer") Then
WScript.Echo "WWW Site: " & oIISSite.Name & " - " & oIISSite.ServerComment
Set oIISRoot = oIISSite.GetObject("IIsWebVirtualDir", "ROOT")
ScriptMappings = oIISRoot.ScriptMaps
' ScriptMappings modified here
With oIISRoot
.ScriptMaps = ScriptMappings
.SetInfo
End With
Set oIISRoot = Nothing
End If
Next
Set oIIS = Nothing
Set oIISSite = Nothing
Set oIISRoot = Nothing
Bookmarks