none
IIS: Powershell or appcmd command to reset IIS site's handler mapping to the parent RRS feed

  • Question

  • While automating IIS site deployments we are stuck with automating such simple operation as 'revert handlers to the parent' (IIS 7.5).

    We found this 

        Set-Location IIS:\sites\$Site
        clear-WebConfiguration -filter /system.webserver/handlers -force

    But this does not work when one changes apppool from .net2 to .net4 and tries to revert the handlers.

    A lot of resources refer to a c# script but I think it is also outdated.

    Thanks.

    Thursday, March 24, 2016 2:04 PM