{"id":48,"date":"2010-07-08T15:16:07","date_gmt":"2010-07-08T19:16:07","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=48"},"modified":"2010-07-08T15:29:27","modified_gmt":"2010-07-08T19:29:27","slug":"exporting-iis-7-web-site-settings","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2010\/07\/08\/exporting-iis-7-web-site-settings\/","title":{"rendered":"Exporting IIS 7 web site settings&#8230;"},"content":{"rendered":"<p>Well, now that Microsoft is shipping Windows 2008 Server R2, we need to know how to (easily) migrate a site from one W2K8R2 machine to another, right?\u00a0 Microsoft didn&#8217;t exactly make this an easy process because there is no built-in method in the IIS 7.0 GUI to do the site export.\u00a0 So to do the export (and import on another IIS 7 box), you need to drop to a command line and run the following commands:<\/p>\n<h4>EXPORT site from IIS 7 (Windows 2008 R2 server)<\/h4>\n<table bgcolor=\"#eaeaea\">\n<tbody>\n<tr>\n<td><span style=\"font-family: courier; font-size: small;\">%windir%\\system32\\inetsrv\\AppCmd.exe LIST SITE &quot;www.yoursitenamehere.com&quot; \/config \/XML &gt; D:\\mysitesconfiguration.xml<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>IMPORT site into IIS 7.0 (after you have created the above export XML file&#8230;)<\/h4>\n<table bgcolor=\"#eaeaea\">\n<tbody>\n<tr>\n<td><span style=\"font-family: courier; font-size: xx-small;\">%windir%\\system32\\inetsrv\\AppCmd.exe ADD SITE \/IN &lt; D:\\mysitesconfiguration.xml<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The last step is to create a new application pool and assign this IMPORTED site to the new application pool.<\/p>\n<p>NOTES:\u00a0 It is very important that you run this from a command prompt, not the &#8220;start bar box&#8221; on the Start Menu in Windows 2008 R2 Server.\u00a0 Instead run the command prompt as Administrator and do this command by keying it in, or create a batch file and execute it as the administrator on that machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, now that Microsoft is shipping Windows 2008 Server R2, we need to know how to (easily) migrate a site from one W2K8R2 machine to another, right?\u00a0 Microsoft didn&#8217;t exactly make this an easy process because there is no built-in method in the IIS 7.0 GUI to do the site export.\u00a0 So to do the export (and import on another<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[5,8],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-iis-tips-n-tricks","tag-iis","tag-microsoft-windows-server"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":13,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}