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


Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

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...

135 Responses

  1. Angelica says:

    Amazing! Its in fact awesime paragraph, I
    have got much clear idea about frlm tthis article.

  2. เฟร์นันเดซ says:

    You actually make it appear so easy with your presentation however I in finding this matter to be really one thing which I think I’d by no means understand. It seems too complex and very broad for me. I am taking a look ahead for your subsequent put up, I will attempt to get the dangle of it!

  3. فیلم روز says:

    I have read so many articles regarding the blogger lovers except this article is really a fastidious article, keep it up.

  4. FangWallet says:

    Wow, incredible blog format! How long have you ever been running a blog for? you make running a blog glance easy. The entire look of your website is fantastic, as well as the content material!

  5. ikaria juice says:

    I’ve been browsing online greater than three hours lately, yet I never found any attention-grabbing article like yours. It is lovely value enough for me. In my opinion, if all site owners and bloggers made good content as you did, the net shall be much more helpful than ever before.

  6. neurotonix says:

    Hello there, You have performed an excellent job. I will definitely digg it and for my part suggest to my friends. I’m sure they’ll be benefited from this website.

  7. جملات says:

    I have read so many articles regarding the blogger lovers except this article is really a fastidious article, keep it up.

  8. 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.

  9. 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.

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

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

  11. pornodom.top says:

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

  12. pornodom.top says:

    Major thanks for the article post. Much thanks again.

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

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

  14. Bryant Wittry says:

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

  15. Herminia Garrott says:

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

  16. 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.

  17. Eliseo Candle says:

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

  18. Hsiu Casadei says:

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

  19. Alberto Boxell says:

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

  20. Louie Stander says:

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

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

    I reckon something truly special in this website.

  22. Shad Nevland says:

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

  23. Neda Raskin says:

    You’ve been great to me. Thank you!

  24. Dorris Muros says:

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

  25. Rebbeca Gaulding says:

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

  26. Queenie Mcclearen says:

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

  27. Freddie Seeton says:

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

  28. Corene Kurth says:

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

  29. Morton Britschgi says:

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

  30. 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.

  31. Harry Hinchee says:

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

  32. Camila Rand says:

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

  33. Jimmie Ruud says:

    How can I find out more about it?

  34. Thuy Zorens says:

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

  35. Van Athalone says:

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

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

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

  37. Olin Bollen says:

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

  38. 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

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

    I gotta favorite this site it seems very beneficial handy

  40. Clifford Dumlao says:

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

  41. Shelby Zickler says:

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

  42. Dino Ballmer says:

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

  43. zoritoler imol says:

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

  44. Yong Meisinger says:

    May I request more information on the matter?

  45. Patricia Baral says:

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

  46. 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.

  47. Kermit Shean says:

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

  48. 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.

  49. 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!

  50. Brooks Muehl says:

    What are your articles about? Please tell me more.

  51. Reed Hind says:

    May I have information on the topic of your article?

  52. 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.

  53. 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.

  54. 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.

  55. 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!

  56. 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.

  57. 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!

  58. Felipe Lubrano says:

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

  59. Lazaro Kupstas says:

    I always find your articles very helpful. Thank you!

  60. Jerald Naimoli says:

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

  61. Fred Czarkowski says:

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

  62. Buford Lamoreaux says:

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

  63. Maranda Brum says:

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

  64. 676 says:

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

  65. 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.

  66. John Teekasingh says:

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

  67. Nicol Lewark says:

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

  68. Soila Almerico says:

    You’ve been terrific to me. Thank you!

  69. Wilmer Noyd says:

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

  70. Julie Woodside says:

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

  71. Ginny Kostyla says:

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

  72. Kathi Menter says:

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

  73. 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.

  74. Mia Kibler says:

    I really appreciate your help

  75. Tad Pacquin says:

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

  76. Arlie Musquiz says:

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

  77. Magdalene Mcpeak says:

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

  78. Lamar Simonds says:

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

  79. Edmond Goolman says:

    How can I learn more about it?

  80. 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.

  81. austin local news says:

    A stitch in time saves nine.

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

  83. 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!!

  84. 410 says:

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

  85. 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.

  86. 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!

  87. 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 .

  88. 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

  89. 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.

  90. 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?

  91. 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!

  92. zoritoler imol says:

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

  93. 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!!

  94. crorkservice says:

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

  95. 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!

  96. 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.

  97. gralion torile says:

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

  98. LarryLog says:

    click the next web page

  99. 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.

  100. replicamagic says:

    it is a fine statement

  101. 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!

  102. 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.

  103. Harvey says:

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

  104. Jerome says:

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

  105. nnrolex com says:

    awesome article

  106. 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!

  107. 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

  108. 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

  109. 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

  110. 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

  111. 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

  112. 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.

  113. Clement says:

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

  114. froleprotrem says:

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

  115. 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!

  116. Durgesh says:

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

  117. zortilo nrel says:

    Utterly indited content material, Really enjoyed reading.

  118. 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?

  119. 2020 says:

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

  120. Ruth says:

    Very informative blog article.Much thanks again. Fantastic.

  121. Tracey says:

    I really like the design and contents of your web page

  122. hard says:

    You produce quality content, congratulations on this

  123. jamika synan says:

    I am thinking of visiting your website again Thanks

  124. dovie sausedo says:

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

  125. jonah fernatt says:

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

  126. valeria rannels says:

    You have a quality site, I congratulate you on this

  127. horacio grueser says:

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

  128. leisa friederich says:

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

  129. danilo rubiano says:

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

  130. willette mcmillian says:

    Awesome article post.Much thanks again.

  131. filmi full izle says:

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

  132. izle says:

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

  133. film says:

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

  134. altyazili says:

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

  135. 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 *