Link to home
Start Free TrialLog in
Avatar of gslit
gslitFlag for United States of America

asked on

Reset IIS 7 back to its original state

Is there a way to reset IIS 7 back to its original state. Some how I lost my Default Web Site and can't re-create it. I keep getting permission errors. I have tried turning the feature off and then back on but it comes back in the same state. I think that some of the IIS_ accounts are missing from the iisroot directory structure. Please help...
P1.png
P2.png
P3.png
Avatar of rachitkohli
rachitkohli
Flag of India image

try this
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

If this is a domain controller, their is a separate DC .inf file you need to
apply as well to get the default DC permissions.
Avatar of gslit

ASKER

This problem is not related to outlook or owa and is not on a 2003 server. The platform is a windows vista ultimate (SP1) laptop and IIS 7. I need to be able to restore the default web site files and configuration. When I try and create it myself, I get the authentication errors shown in the attachment.
Why dont you try removing Web Server (IIS Role)  and then reinstalling it ... ?
Avatar of gslit

ASKER

I have already removed the feature, removed the inetpub directory tree, and added back in the feature. I currently have iis 7 back clean except that the default web site was not created. When I try and create a default site at the root level "c:\inetpub\wwwroot", I get the follow permissions error:

The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.

I can't figure out exactly what the heck to do here. The directory permissions look correct.
ASKER CERTIFIED SOLUTION
Avatar of gslit
gslit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial