Rosberg Linhares
Rosberg Linhares

Reputation: 3687

Is there any PowerShell DSC resource for ASP.NET IIS registration (aspnet_regiis.exe)?

I want to install ASP.NET 4.x in a Windows Server 2008 R2 machine using Powershell DSC. Is there any PowerShell DSC resource for this?

Thank you!

Upvotes: 1

Views: 1036

Answers (2)

Rosberg Linhares
Rosberg Linhares

Reputation: 3687

Yes, there is! I built a DSC resource for this:

https://www.powershellgallery.com/packages/cAspNetIisRegistration

Feel free to contribute with any bugs, feature requests or enhancements to this resource on its github repo.

Upvotes: 1

N.Gupta
N.Gupta

Reputation: 326

I haven't tried with 4.0 but it would be similar to installing 4.6.1. However if a newer version of DotNet framework is already installed, the package won't install.

configuration InstallNetFramework
{
    package NetFramework4.6.1
    {
        Path = "C:\NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
        ProductId = "8EEB28EE-5141-411C-9CF0-9952264FE4AF"
        Name = "Microsoft .NET Framework 4.6.1 Targeting Pack"
        Arguments = "/q"
    }
}

InstallNetFramework

Upvotes: 0

Related Questions