2

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.

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.