IIS7 - How to save configuration of one website or virtual directory

This is a discussion on IIS7 - How to save configuration of one website or virtual directory within the Inetserver forums in Microsoft Tools category; Hi, I'm stumped on a task in IIS7. Previously with IIS6 we used the feature of saving a configuration to file for a single website or a virtual directory. However, in IIS7 we cannot to seem to find the equivalent. I have read and use the Backup feature (cmd line and GUI) which creates a snapshot of the entire IIS7 setup. But I'm only need to duplicate one virtual directory and the save config to file feature doesn't seem to be around in IIS7. Does anyone know a way in IIS7 to perform this task? I just want to get ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-19-2008, 05:46 PM
russell.harris@gmail.com
Guest
 
Default IIS7 - How to save configuration of one website or virtual directory

Hi,
I'm stumped on a task in IIS7. Previously with IIS6 we used the
feature of saving a configuration to file for a single website or a
virtual directory. However, in IIS7 we cannot to seem to find the
equivalent. I have read and use the Backup feature (cmd line and GUI)
which creates a snapshot of the entire IIS7 setup. But I'm only need
to duplicate one virtual directory and the save config to file feature
doesn't seem to be around in IIS7.
Does anyone know a way in IIS7 to perform this task? I just want to
get the config for this virtual directory out, and import it into a
different website.
Any help is appreciated.
Thanks,
Russell
Reply With Quote
  #2  
Old 05-19-2008, 11:34 PM
Bernard Cheah [MVP]
Guest
 
Default Re: IIS7 - How to save configuration of one website or virtual directory

you can use appcmd list site/vdir/etc /config /xml > output.xml


to import it try appcmd add site/vdir/etc /in < output.xml

note - you may need to edit the xml file to avoid conflict etc.
say site id -
export site id = 1
import - change site id to 2 before the appcmd /in syntax.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


<russell.harris@gmail.com> wrote in message
news:b672d14d-8825-48de-9b9f-ad0874928e0a@t54g2000hsg.googlegroups.com...
> Hi,
> I'm stumped on a task in IIS7. Previously with IIS6 we used the
> feature of saving a configuration to file for a single website or a
> virtual directory. However, in IIS7 we cannot to seem to find the
> equivalent. I have read and use the Backup feature (cmd line and GUI)
> which creates a snapshot of the entire IIS7 setup. But I'm only need
> to duplicate one virtual directory and the save config to file feature
> doesn't seem to be around in IIS7.
> Does anyone know a way in IIS7 to perform this task? I just want to
> get the config for this virtual directory out, and import it into a
> different website.
> Any help is appreciated.
> Thanks,
> Russell



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:27 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.