Can Windows IIS settings be managed from the command line?

Posted on

Can Windows IIS settings be managed from the command line? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about windows, iis, windows-server-2012-r2, , .

I’ve gone through a plethora of GUIs to setup a new IIS instance with some custom settings. I’m aware of web.config in my wwwroot but that does not reflect all the changes I’ve made.

Is there a way to export the current state of IIS for re-use and then later setup a new server with the same settings, from the command line? I’d like to avoid hours of clicking through GUIs.

Solution :

What you are looking for is appcmd.exe. It allows you to manage everything in IIS, including backing up and restoring the configuration.

There are also many PowerShell cmdlets for managing IIS; these also includes ones for backing up and restoring the configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *