IIS6.0 has a function to export configuration, but you can't find the direct import configuration function on the interface. You need to use the iiscnfg.vbs script that comes with the operating system. (Picture small click to enlarge)
First, save/export/backup WEB configuration
Select a save path
Second, restore configuration
First open the backup weback20090901.xml file, view the path to the "default site" in the XML notation, later The command line needs to use
If the default website has lost the three virtual directories at the beginning of EX, the physical path of iisadmpsw has also been modified
Close the IIS Manager and enter the iiscnfg command (if prompted to register cscript.exe as the default script parser, answer “ is ”), the site configuration is restored, then Manually launch the default website, get it!
Command: iiscnfg /import /fc:iisbackweback20090901.xml /sp /LM/W3SVC/1 /dp /LM/W3SVC/1 /children
Explanation:
/import /f Import the configuration file, followed by the saved .xml configuration file
/sp Specify the .xml Source path, required
/dp Specifies the target path to be imported to the website, mandatory, /LM/W3SVC/1 refers to the first WEB site currently seen in IIS Manager
/children Import the configured sub-virtual directory configuration in .xml and import it
3. Merging mode
Sometimes only the configuration items in the saved .xml file are allowed to be replaced. Existing configuration, but some new virtual directories (that is, configurations not available in .xml) are not allowed to be replaced. You can use the merge mode, that is, the virtual directory added after the backup is retained, and the same virtual directory settings are replaced. This mode is recommended. Just add a /merge parameter after the above command.
Example: New aaa virtual directory to be retained, to restore the file at the beginning of EX, and restore the local path settings of iisadmpsw
Command, OK
iiscnfg /import /fc:iisbackweback20090901.xml /sp /LM/W3SVC/1 /dp /LM/W3SVC/1 /children /merge
Sometimes the following error occurs when opening the home page, ie http://localho
WebDA-based (Web-based Distributed Authoring and Versioning) A communication proto
server hardware - the hard drive. If the motherboard is compared to the brain and the CPU is the hea
The definition of a cloud is that it is suspended in the air, does not touch the
Server log cleanup and IIS log cleanup
Use linux as an FTP server (3)
Configuring Internet access for DNS in Windows Server 2003
About PHP's thread safety mode (Thread Safety)
Exchange administrator needs to know the DST data summary
Avoid running out of servers Parsing virtualized capacity planning
Linux streaming media Helix Server detailed installation and configuration
One IP to build multiple Web sites - Host Header Method
VPN Server Setup Guide under Windows 2003
Win8 together to create a personalized desktop
Why win7 connected to the wireless network will appear resource manager crash restart
Win8.1 boot blue screen prompt error Ntfs.sys how to do?
How to remotely restart NT server with port 139
Win8 tips for changing touch input settings
Win10 network icon how to put the desktop Win10 desktop display network icon setting method
Win10 professional version upgrade win10 enterprise version graphic tutorial
Win10 has not been completely updated, win11 may come soon
Win8 installs the Bluetooth driver to encounter the "access denied" problem solution