title: How to revert-to-parent handler mappings for an application on IIS 7 (or higher) by code?
body: <p>It is possible to revert handler mappings for an application to parent manually by following below steps:</p>
  
  <ul>
  <li>Select Application on IIS management console</li>
  <li>Double click Handler Mappings</li>
  <li>Clik Revert to Parent on the Actions pane</li>
  </ul>
  
  <p>Is there a way achieve the same task programmatically (appcmd.exe, VBScript, C#..) ?</p>
  
  <p>Note:
  If there is a custom setting already defined for the application, aspnet_regiis -i command does not work.
  The only way I have found so far is to remove application from IIS and add it again by code.</p>