2

I've installed IIS on a server 2008 r2 system by command line.

Now I also want to set some settings by command line. For example to enable ASP.NET v4.0.30319 and enable windows and basic authentication.

Is it possible?

If it is possible, how can I do it?

Thanks in advance. Marco

1 Answer 1

1

You can change all IIS settings on the command line, even some things you can not change in the GUI.

There are various options, you could use appcmd.exe, COM objects in your WSH scripts or own programss, or PowerShell IIS cmdlets.

There are tons of examples out there, a good starting point is www.iis.net, they have a reference section with many examples. You could also use the Configuration editor in 'IIS Manager' it offers to generate a script for any change you make in it. Just copy the script into your batch file.

To enable ASP.NET you may need to look into

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .