Click here to Skip to main content
12,831,378 members (30,916 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET IIS
how can i restore IIS setting to default in windows server 2008
Posted 2-Oct-12 0:50am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Based on the following similar discussion[^]:
It depends on where you have the config settings stored. By default IIS7 will have all of it's configuration settings stored in a file called "ApplicationHost.Config". If you have delegation configured then you will see site/app related config settings getting written to web.config file for the site/app. With IIS7 on vista there is an automatica backup file for master configuration is created. This file is called "application.config.backup" and it resides inside "C:\Windows\System32\inetsrv\config" You could rename this file to applicationHost.config and replace it with the applicationHost.config inside the config folder. IIS7 on server release will have better configuration back up story, but for now I recommend using APPCMD to backup/restore your configuration on regualr basis. Example: APPCMD ADD BACK "MYBACKUP" Another option (really the last option) is to uninstall/reinstall IIS along with WPAS (Windows Process activation service).

Also look at this option: How to backup/restore IIS7 configuration [^] - Using IIS History
%windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"

Details here: Using Configuration History with IIS 7 and IIS 8 [^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170326.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100