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:
aspnet_regiis.exe –iru
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.
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?