Exporting & Importing App Pools and Websites configuration between multiple IIS instances

Sometimes we have to configure multiple web servers or migrate entire website configuration to another server. It will be a lot of work to create your entire website twice with the same settings on each web server. Therefore it is possible to export and import your configuration from one web server to the other.

We can do this command-line utility called appcmd which can effectively export the entire IIS websites & app pools configuration in xml format and also import this exported xml into another IIS instance.

AppCmd.exe is the single command line tool for managing IIS 7 and above. It exposes all key server management functionality through a set of intuitive management objects that can be manipulated from the command line or from scripts.

Some of the things you can do with AppCmd:

  • Create and configure sites, apps, application pools, and virtual directories
  • Start and stop sites, and recycle application pools
  • List running worker processes, and examine currently executing requests
  • Search, manipulate, export, and import IIS and ASP.NET configuration

We can get help for AppCmd what are the available options using /?:

  • AppCmd /?
  • AppCmd site /?
  • AppCmd config /?
  • AppCmd list apppool /?

This blog discusses simplifying the Exporting & Importing process. This will work for IIS 7, IIS 7.5, IIS 8, IIS 8.5

Export the Application Pools

We can export and import the application pools since they will most likely be used in your web sites and you won’t be able to import those without having their relevant app pool into place. Here’s the command-line.

This command will export all your application pools – including the default application pool. You have to remove those, as they will most likely be in your target IIS instance with the same name and therefore they will raise a duplicate name error, blocking the whole import. In order to avoid that, open the newly created apppools.xml file and remove the default ones such as:

  • DefaultAppPool
  • Classic .NET AppPool
  • .NET v2.0
  • .NET v2.0 Classic
  • .NET v4.5
  • .NET v4.5 Classic

Import the Application Pools

Copy the apppools.xml file to your target webserver and run the following command:

C:\Windows\System32\inetsrv\appcmd add apppool /in  < c:\apppools.xml

All Application Pool mentioned in the xml file will be created on your target IIS instance.   

Export the Websites

Export the all website with the following command:

C:\Windows\System32\inetsrv\appcmd list site /config /xml > c:\mysites.xml

Again, you’ll have to remove the default websites –  you’ll most likely have only one default website, which is Default Website – as well as any other website you don’t want to copy and/or is already existing on the target IIS instance, otherwise the import command won’t work.

Import the Websites

Just like you did with the App Pools file, copy the websites.xml file to your target webserver and run the following command:

C:\Windows\System32\inetsrv\appcmd add site /in < c:\mysites.xml

You may also like...

128 Responses

  1. offshore sportsbooks says:

    Generally I do not read post on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been surprised me. Thanks, very nice post.

  2. liebespuppe says:

    Thanks for giving your ideas. One thing is that students have a selection between fed student loan along with a private education loan where it’s easier to select student loan consolidation than with the federal education loan.

  3. домашнее says:

    I got what you intend,bookmarked, very decent website.

  4. pornodom.top says:

    A lot of blog writers nowadays yet just a few have blog posts worth spending time on reviewing.

  5. pornodom.top says:

    Major thanks for the article post. Much thanks again.

  6. анал частное says:

    Thanks for sharing, this is a fantastic blog post.Really thank you! Much obliged.

  7. Bryant Wittry says:

    Thank you for providing me with these article examples. May I ask you a question?

  8. Herminia Garrott says:

    Thank you for your help and this post. It’s been great.

  9. Wiley Buechner says:

    You helped me a lot with this post. I love the subject and I hope you continue to write excellent articles like this.

  10. Eliseo Candle says:

    It would be nice to know more about that. Your articles have always been helpful to me. Thank you!

  11. Hsiu Casadei says:

    Dude these articles have been really helpful to me. They really helped me out.

  12. Alberto Boxell says:

    Thank you for writing this post. I like the subject too.

  13. Louie Stander says:

    You’ve been a great help to me. Thank you!

  14. русское порно с пьяными says:

    I reckon something truly special in this website.

  15. Shad Nevland says:

    I would like to know more about this subject if you don’t mind.

  16. Neda Raskin says:

    You’ve been great to me. Thank you!

  17. Dorris Muros says:

    It would be nice to know more about that. Your articles have always been helpful to me. Thank you!

  18. Rebbeca Gaulding says:

    You’ve been a great help to me. Thank you!

  19. Queenie Mcclearen says:

    You’ve been a big help to me. Thank you!

  20. Freddie Seeton says:

    You should write more articles like this, you really helped me and I love the subject.

  21. Corene Kurth says:

    I really enjoyed reading your post and it helped me a lot

  22. Morton Britschgi says:

    Thank you for your help and this post. It’s been great.

  23. Mindy Luelf says:

    Thank you for your post. I really enjoyed reading it, especially because it addressed my issue. It helped me a lot and I hope it will help others too.

  24. Harry Hinchee says:

    Thank you for writing such a great article. It helped me a lot and I love the subject.

  25. Camila Rand says:

    Thank you for sharing this article with me. It helped me a lot and I love it.

  26. Jimmie Ruud says:

    How can I find out more about it?

  27. Thuy Zorens says:

    Dude these articles have been great. Thank you for helping me.

  28. Van Athalone says:

    Thank you for your help. I must say you’ve been really helpful to me.

  29. порно секс с младшей сестрой says:

    Wohh precisely what I was searching for, regards for putting up.

  30. Olin Bollen says:

    Your articles are incredibly helpful to me. Thank you! May I request more information?

  31. Indian Call Girl says:

    Excellent weblog here! Additionally your web site a lot up fast! What web host are you the use of? Can I am getting your associate link to your host? I wish my site loaded up as fast as yours lol

  32. любительское порно молодых says:

    I gotta favorite this site it seems very beneficial handy

  33. Clifford Dumlao says:

    Dude these articles were really helpful to me. Thanks a lot.

  34. Shelby Zickler says:

    Thank you for your excellent articles. Would you be able to help me out?

  35. Dino Ballmer says:

    The articles you write help me a lot and I like the topic

  36. zoritoler imol says:

    Exactly what I was looking for, thanks for putting up.

  37. Yong Meisinger says:

    May I request more information on the matter?

  38. Patricia Baral says:

    Dude these articles have been great. Thank you for helping me.

  39. Chan Kachelmeyer says:

    You helped me a lot with this post. I love the subject and I hope you continue to write excellent articles like this.

  40. Kermit Shean says:

    Thanks for your help and for posting this article. It’s been great.

  41. diagnostic packaging says:

    Thanks for sharing superb informations. Your web site is so cool. I am impressed by the details that you have on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and simply couldn’t come across. What a perfect web site.

  42. rigid candy boxes says:

    My brother suggested I would possibly like this website. He was once totally right. This put up actually made my day. You cann’t consider just how much time I had spent for this information! Thanks!

  43. Brooks Muehl says:

    What are your articles about? Please tell me more.

  44. Reed Hind says:

    May I have information on the topic of your article?

  45. material dress says:

    Nice post. I was checking constantly this blog and I am impressed! Very helpful information particularly the final part 🙂 I handle such info a lot. I was looking for this certain info for a very lengthy time. Thank you and best of luck.

  46. online fabric store says:

    I have been browsing on-line greater than 3 hours lately, but I never found any interesting article like yours. It is lovely worth sufficient for me. In my opinion, if all site owners and bloggers made good content material as you probably did, the web will probably be a lot more useful than ever before.

  47. curso de caligrafia gratuito says:

    Generally I do not read post on blogs, but I would like to say that this write-up very pressured me to try and do it! Your writing style has been surprised me. Thank you, quite nice article.

  48. 874 says:

    Hello there! This iis myy 1st comment ere soo I jjust wanted
    too givce a quick shout out and say I really enjoy reading through your posts.
    Cann youu suggest anny otherr blogs/websites/forums that deal with tthe same topics?

    Manyy thanks!

  49. zoritoler imol says:

    I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.

  50. wszywka alkoholowa koszt says:

    What i do not understood is actually how you are not actually much more well-liked than you might be right now. You are so intelligent. You realize therefore significantly relating to this subject, produced me personally consider it from so many varied angles. Its like men and women aren’t fascinated unless it is one thing to do with Lady gaga! Your own stuffs great. Always maintain it up!

  51. Felipe Lubrano says:

    It would be nice to know more about that. Your articles have always been helpful to me. Thank you!

  52. Lazaro Kupstas says:

    I always find your articles very helpful. Thank you!

  53. Jerald Naimoli says:

    Thanks for writing this article. I enjoy the topic too.

  54. Fred Czarkowski says:

    Thank you for posting such a wonderful article. It helped me a lot and I appreciate the topic.

  55. Buford Lamoreaux says:

    Your articles are extremely beneficial to me. May I request more information?

  56. Maranda Brum says:

    Thank you for posting such a wonderful article. It really helped me and I love the topic.

  57. 676 says:

    Hi there, just wsnted to mention, I liked
    this post. It was inspiring. Keepp oon posting!

  58. Nellie Catalani says:

    Thanks for posting. I really enjoyed reading it, especially because it addressed my problem. It helped me a lot and I hope it will help others too.

  59. John Teekasingh says:

    You’ve been a great help to me. Thank you!

  60. Nicol Lewark says:

    Thank you for your excellent articles. May I ask for more information?

  61. Soila Almerico says:

    You’ve been terrific to me. Thank you!

  62. Wilmer Noyd says:

    Thank you for writing such an excellent article. It helped me a lot and I love the topic.

  63. Julie Woodside says:

    Please tell me more about this. May I ask you a question?

  64. Ginny Kostyla says:

    Thanks for your help and for writing this post. It’s been great.

  65. Kathi Menter says:

    I want to thank you for your assistance and this post. It’s been great.

  66. Curtis Stradling says:

    Thank you for your post. I really enjoyed reading it, especially because it addressed my issue. It helped me a lot and I hope it will help others too.

  67. Mia Kibler says:

    I really appreciate your help

  68. Tad Pacquin says:

    I’ve to say you’ve been really helpful to me. Thank you!

  69. Arlie Musquiz says:

    Thank you for your excellent articles. May I ask for more information?

  70. Magdalene Mcpeak says:

    Your articles are extremely helpful to me. May I ask for more information?

  71. Lamar Simonds says:

    Thanks for your help and for posting this article. It’s been great.

  72. Edmond Goolman says:

    How can I learn more about it?

  73. 579 says:

    Yourr stfyle is really unique compared to other prople I
    have rrad stuff from. Thanks for posting whewn you’vegot the opportunity,
    Guess I willl just boook mark this webb site.

  74. austin local news says:

    A stitch in time saves nine.

  75. Very nice article, just what I was looking for.

  76. Aundrea says:

    Goood site you’ve got here.. It’s difficult too find high-quality writing like yohrs nowadays.
    I serously appreciate individuals lke you!
    Take care!!

  77. 410 says:

    This website was… how do I say it? Relevant!! Fiinally I’ve
    found something which helped me. Kudos!

  78. 982 says:

    It’s veryy easy to find oout any matter on neet aas compared tto textbooks, as I found this pozt at tthis web site.

  79. Percy says:

    I like the valuable informationn yoou provide
    iin youir articles. I’ll bookmark your weblog and check agsin hete regularly.

    I’m quite certain I wikll learn many neww stuff right
    here! Best of lyck ffor the next!

  80. zoritoler imol says:

    Hello my loved one! I want to say that this article is amazing, great written and come with approximately all important infos. I would like to see extra posts like this .

  81. 046 says:

    Great bllog here! Additionally your sote soo much up fast!

    What web host are yoou the usse of? Can I gett your affiliate hyperlink
    ffor your host? I dssire my web site loaded upp ass quickly as yours lol

  82. 452 says:

    I loed as muchh as you wikl receive carrioed out right here.

    Thhe sketch iss attractive, your authored material stylish.
    nonetheless, you command get bought ann nervousnness over tat yyou wish
    be delivering thhe following. unwel unquestionably comke
    mmore formerly agaion as exactly the ame nearly a lot often inside case
    yyou shidld this hike.

  83. 229 says:

    Remarkable things here. I’m very glad tto peer your post.

    Thankk you a lot andd I aam looking ahead too ttouch you.
    Will youu pleease drop me a mail?

  84. 277 says:

    Hello! I could hae swoorn I’ve beden to
    this blog before but after looking att some oof the
    posts I realized it’s neww to me. Regardless, I’m definitely pleased I cawme acrross iit aand I’ll bbe bookmaroing itt and checking back regularly!

  85. zoritoler imol says:

    I am always searching online for articles that can help me. Thank you!

  86. we buy junk cars houston no title says:

    Hello, i think that i saw you visited my weblog so i came
    to “return the favor”.I am attempting to find things to improve my web site!I suppose its ok to use a few of
    your ideas!!

  87. crorkservice says:

    Thanks again for the article.Really looking forward to read more. Great.

  88. gralion torile says:

    What i do not understood is in truth how you’re not really a lot more neatly-preferred than you might be now. You are very intelligent. You recognize thus considerably on the subject of this subject, made me individually believe it from so many various angles. Its like men and women don’t seem to be fascinated unless it?¦s something to do with Girl gaga! Your own stuffs great. At all times deal with it up!

  89. zoritoler imol says:

    I have been browsing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all site owners and bloggers made good content as you did, the web will be a lot more useful than ever before.

  90. gralion torile says:

    Some genuinely nice stuff on this site, I like it.

  91. LarryLog says:

    click the next web page

  92. Arianne says:

    It’s actually a cool and useful piece of information. I am happy that you shared this helpful information with us.
    Please stay us informed like this. Thank you for sharing.

  93. replicamagic says:

    it is a fine statement

  94. Starla says:

    That is a very good tip especially to those new to the blogosphere.
    Short but very accurate information… Many thanks for sharing this
    one. A must read article!

  95. Marcel says:

    I all the time emailed this webpage post page to all my friends,
    as if like to read it next my friends will too.

  96. Harvey says:

    Hello, I want to subscribe for this website to take most
    recent updates, so where can i do it please help out.

  97. Jerome says:

    Hi Dear, are you truly visiting this website regularly, if so afterward you will absolutely take pleasant know-how.

  98. nnrolex com says:

    awesome article

  99. Aegean College says:

    Having read this I believed it was really enlightening.
    I appreciate you spending some time and energy to put this information together.
    I once again find myself personally spending a significant amount of
    time both reading and commenting. But so what, it was still worthwhile!

  100. 0mniartist says:

    Thank you for sharing your thoughts. I really appreciate your efforts and I will be waiting for your further write ups thank you
    once again. 0mniartist asmr

  101. 0mniartist says:

    Hello, I wish for to subscribe for this weblog to get hottest updates, thus where
    can i do it please assist. 0mniartist asmr

  102. 0mniartist says:

    Nice post. I used to be checking continuously this weblog and I’m impressed!
    Very useful info specially the closing part 🙂 I maintain such info a lot.
    I used to be looking for this certain information for a very lengthy time.
    Thanks and best of luck. asmr 0mniartist

  103. 0mniartist says:

    I read this post completely on the topic of the resemblance of most up-to-date and earlier technologies, it’s amazing article.
    asmr 0mniartist

  104. 0mniartist says:

    It is actually a nice and useful piece of info. I’m happy that you just shared
    this useful information with us. Please stay us informed like this.
    Thank you for sharing. 0mniartist asmr

  105. Roxana says:

    I was very happy to uncover this site. I want to to thank you for ones time for this particularly fantastic read!!

    I definitely liked every part of it and I have you book-marked to look at new things on your site.

  106. Clement says:

    Highly descriptive blog, I enjoyed that a lot. Will there be
    a part 2?

  107. froleprotrem says:

    I think you have noted some very interesting details , regards for the post.

  108. Deanne says:

    Please let me know if you’re looking for a article writer
    for your site. You have some really great posts and I believe
    I would be a good asset. If you ever want to take some of the load off, I’d love to write some material for your blog in exchange for a link back
    to mine. Please send me an e-mail if interested.
    Thank you!

  109. Durgesh says:

    बहुत अच्छी पोस्ट

  110. zortilo nrel says:

    Utterly indited content material, Really enjoyed reading.

  111. froleprotrem says:

    Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! However, how can we communicate?

  112. 2020 says:

    A moment of silence for the person who cleaned this. Giuseppe Duilio Abe

  113. Ruth says:

    Very informative blog article.Much thanks again. Fantastic.

  114. Tracey says:

    I really like the design and contents of your web page

  115. hard says:

    You produce quality content, congratulations on this

  116. jamika synan says:

    I am thinking of visiting your website again Thanks

  117. dovie sausedo says:

    I read a great article with pleasure, I hope it will continue

  118. jonah fernatt says:

    Thanks so much for the blog post.Thanks Again. Great.

  119. valeria rannels says:

    You have a quality site, I congratulate you on this

  120. horacio grueser says:

    I get very useful information on your page, I feel lucky

  121. leisa friederich says:

    Wow, great blog article.Really thank you! Really Great.

  122. danilo rubiano says:

    It was very useful, I can say it was a useful article for me.

  123. willette mcmillian says:

    Awesome article post.Much thanks again.

  124. filmi full izle says:

    “Say, you got a nice article.Much thanks again. Fantastic.” Britt Faye

  125. izle says:

    Im thankful for the blog article. Really Great. Lura Hocke

  126. film says:

    “Great, thanks for sharing this article post.Really looking forward to read more. Awesome.” Coral Molino

  127. altyazili says:

    There is certainly a lot to know about this subject. I like all of the points you have made. Carie Fabio Damales

  128. Luella says:

    If you would like to get a great deal from this piece of writing then you have to apply these methods to your
    won blog.

Leave a Reply

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