{"id":44,"date":"2011-05-19T09:07:31","date_gmt":"2011-05-19T09:07:31","guid":{"rendered":"http:\/\/devopsny.com\/blog\/?p=44"},"modified":"2013-03-04T21:08:03","modified_gmt":"2013-03-04T21:08:03","slug":"how-to-duplicate-an-iis7-configuration","status":"publish","type":"post","link":"https:\/\/devopsny.com\/blog\/2011\/05\/19\/how-to-duplicate-an-iis7-configuration\/","title":{"rendered":"How to duplicate an IIS7 configuration"},"content":{"rendered":"<div><strong>Export\u00a0IIS7 Config<\/strong><\/div>\n<div><strong>TWEB<\/strong> is the Destination web server.<\/div>\n<div><strong>SWEB<\/strong> is the Source web server.<\/div>\n<div><strong>First<\/strong>, on TWEB make a backup copy of the files in C:\\Windows\\System32\\inetsrv\\config.\u00a0 I just created a subfolder called \u201cbak\u201d and copied them.\u00a0 This is very important.\u00a0 If you forget or skip this step because backups are for sissies, you will be re-installing IIS7 in step 4.<\/div>\n<div>\u00a0<\/div>\n<div><strong>Second<\/strong>, copy the AppliationHost.config from SWEB into the C:\\Windows\\System32\\inetsrv\\config folder on TWEB.\u00a0 Also copy any application files like your c:\\websites folder or whatever over to TWEB in the appropriate location if you haven\u2019t already.<\/div>\n<div>\u00a0<\/div>\n<div><strong>Third<\/strong>, on TWEB open both the new ApplicationHost.config and the backup ApplicationHost.config from step 1 and locate the &lt;configProtectedData&gt; node in the backup.\u00a0 Copy that node and replace it into the new config file.<\/div>\n<div>\u00a0<\/div>\n<div><strong>Fourth<\/strong>, if you didn\u2019t backup the existing config file, remove the IIS role and add it back, then start at step 1.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Export\u00a0IIS7 Config TWEB is the Destination web server. SWEB is the Source web server. First, on TWEB make a backup copy of the files in C:\\Windows\\System32\\inetsrv\\config.\u00a0 I just created a subfolder called \u201cbak\u201d and copied them.\u00a0 This is very important.\u00a0 If you forget or skip this step because backups are for sissies, you will be [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[4],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-iis7","tag-iis7-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fcrv-I","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":2,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devopsny.com\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}