Reputation: 3687
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
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
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