简体   繁体   中英

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!

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM