Install IIS8 with command line options

By calling pkgmgr.exe from C # with the following parameters, I was able to enable IIS 7 functions in ASP.NET and .NET Extensibility in the application development section.

/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;...... /norestart /quiet

For IIS8, it no longer works because the ASP.NET option is missing in the Application Development Features section. Instead, there are ASP.NET 3.5 and ASP.NET 4.5 (.NET Extensibility 3.5 and .NET Extensibility 4.5).

How can I enable them using pkgmgr.exe?

+6
source share
1 answer

Yesterday I saw your question and regularly looked for it in the hope that someone would answer it. Unfortunately, no one did, the good news, although I found a solution, so I passed it to you.

IIS-ASPNET still exists, and it includes ASP.NET 3.5. You still need IIS-NetFxExtensibility . The difference is that the two now have an additional assumption, NetFx4Extended-ASPNET45 .

So, if you want to enable ASP.NET 3.5, you need: IIS-ASPNET;IIS-NetFxExtensibility;NetFx4Extended-ASPNET45

For ASP.NET 4.5 you need: IIS-ASPNET45;IIS-NetFxExtensibility45;NetFx4Extended-ASPNET45

+12
source

All Articles