title: How to register ASP.NET 4.0 for IIS using PowerShell Web Administration module?
body: <p>I would like to register the ASP.NET 4.0 framework for IIS using a PowerShell script. I have previously used the aspnet_regiis.exe tool in the following way:</p>
  
  <pre><code>aspnet_regiis.exe –iru
  </code></pre>
  
  <p>This did the job, but I would like to refactor my code to use the PowerShell WebAdministration module to do this configuration. I already used it in my script to configure other things in IIS and I want to keep the sourcecode consistent.</p>
  
  <p>There is a way to do this config. step using the WebAdministration module? I looked for the cmdlets from WebAdministration module, but I can't figure out which one could do the trick. Anyone could help me, please?</p>