$Site = [ADSI]"IIS://./W3SVC/1/Root"
$ScriptMaps = $Site.ScriptMaps
# Depending on the version of ASP.NET this is the Map we want to add:
$ScriptMap = ".html,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,"
$ScriptMaps += $ScriptMap
$Site.ScriptMaps = $ScriptMaps
$Site.SetInfo()
|