Search
| Login
corner corner
Relevant Links
corner corner
corner corner
Subscribe To Feed
corner corner
corner corner
Search Articles
corner corner
corner corner
Topics
corner corner
corner corner
Article List
corner corner
corner corner
Article Archive
corner corner
corner corner
Survey
Which platform does your company use?



Submit Survey  View Results
corner corner
corner corner
Relevant Links
corner corner
corner corner
Migrating IIS7 Site Settings
Location: BlogsCubicZoneASP.NET    
Posted by: cubiczone 9/28/2008 5:05 AM

Previously in IIS 5 and 6, you could export Site configuration settings and import them back on another machine making server migration very easy. When IIS 7 came along, we lost that command in the IIS Manager. Fortunately, there is now a new set of command lines that can do almost the same thing.

To export the web site settings (change "My Site" to the name of your site):

> %windir%\system32\inetsrv\AppCmd.exe LIST SITE "My Site" /config /XML > mysite.xml

To import the settings, do this:

> %windir%\system32\inetsrv\AppCmd.exe ADD SITE /IN < mysite.xml

Note the Application Pool will still need to be created manually including any SSL certificate and IP addresses binding need to be re-configured.

Permalink |  Trackback

Comments (1)   Add Comment
Re: Migrating IIS7 Site Settings    By Jimmy Microsoft on 9/28/2009 7:50 PM
Yet another example of why Microsoft is making every version of OS after 2003/XP a downgrade. Pathetic.... Go from DOS command lines to a complex gui, back down to a DOS command line level that's 1000000 times more complex than DOS. Why does microsoft consistantly change good products into pathetic trash? IIS7 is terrible.


Your name:
Title:
Comment:
Add Comment   Cancel 
corner corner