title: What is the Windows Server 2012 command line equivalent of `aspnet_regiis -ir`?
body: <p>As documented in several questions (<a href="https://stackoverflow.com/q/14495429/223837">Alternative for the Registering ASP.NET 4.5 on Windows Server 2012</a>; <a href="https://stackoverflow.com/q/12134713/223837">Server 2012 IIS 8 MVC app shows default IIS home page or 403 / 404 errors</a>; <a href="https://stackoverflow.com/q/11116134/223837">WCF on IIS8; *.svc handler mapping doesn&#39;t work</a>), on Windows Service 2012 the <code>aspnet_regiis -ir</code> command does not work anymore, and instead produces the following output:</p>
  
  <blockquote>
    <p>This option is not supported on this version of the operating system. 
    Administrators should instead install/uninstall ASP.NET 4.5 with IIS8
    using the "Turn Windows Features On/Off" dialog,  the Server Manager
    management tool, or the dism.exe command line tool.  For more details
    please see <a href="http://go.microsoft.com/fwlink/?LinkID=216771" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkID=216771</a>.</p>
  </blockquote>
  
  <p>In our case, we only want to run this command to re-register ASP.NET 4.5, since some other installation un-registered it: ASP.NET 4.5 is installed already.</p>
  
  <p>Using the UI (Add/Remove roles/features), inspired by the referenced posts, I found that it suffices to remove WCF's HTTP Activation feature and then add it again.  (But I needed to uninstall/reinstall a feature that happens to depend on WCF HTTP Activation...)</p>
  
  <p><strong>Question:</strong> How can this same thing be done through the command line on Windows Server 2012?</p>
  
  <p>(I looked at this <code>dism.exe</code> thing, but it looks daunting, and <code>dism.exe -?</code> didn't help me at all.)</p>
  
  <p>Thanks!</p>