Wednesday, February 1, 2012

How to export and import a website in IIS 7.5

Export a website example (thru command prompt)

C:\Windows\SysWOW64\inetsrv\appcmd list site /name:"Default Web Site" /config /xml > C:\Export.xml


Import a website example (thru command prompt)



C:\Windows\SysWOW64\inetsrv\appcmd add sites /in< C:\Export.xml




Delete a website example (thru command prompt)
C:\Windows\SysWOW64\inetsrv\appcmd delete site "Default Web Site"




The above commands are for 64 bit machines, for 32 bit machines, SysWow64 would be replaced by System32

No comments:

Post a Comment