0

Is there a way, preferably PowerShell based, to extract all the configuration data for a particular web site, for installing that web site on site at clients?

  • A web site or a web server config? – MrWhite Jun 7 '14 at 14:12
  • How do I achieve that config? That is the point of my question. – ProfK Jun 7 '14 at 14:54
1

Each website on iis7 will have its own Web.Config file. That is usually all you need to deploy a site to a live server, with the catch that these files can be setup for development use (show errors, etc). If you use a professional build tool, or deployment tool then you can have two web.configs one for deployment and one for coding. But most of the time you just update your web.config to turn off error reporting and switch out database connections before copying a site to a production server.

If you are looking to export Web Server Settings. IIs does have powershell scripts to export IIS settings, and even tools like Web Farm Framework to keep multiple IIS servers in sync.

If you can be more clear on what it is you are trying to achieve, we can help you better.

  • PS. This question will be outdated with the new ASP.net Vnext platform which uses json files for configs. – Frank Aug 14 '14 at 4:46

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.