Ok, so that may sound a bit cataclysmic, but at least in many cases this is true. I have done a lot of searching but not found a great thread that has it simply stated like this.
In fact, the KB article from MS titles this...
IIS settings are missing after you run Sysprep with the -nosidgen command-line switch ... which apparently means ... "Don't use Sysprep with IIS... we will kill it".
https://support.microsoft.com/en-us/kb/827385
Please tell me I'm wrong and I missed something key. But I've been down all of the normal solutions:
- NTFS permission
- run aspnet_regiis
- change app pool security context
- and everything from the thread: https://stackoverflow.com/questions/5615296/cannot-read-configuration-file-due-to-insufficient-permissions
Background I had a webserver joined to a simple local AD. I needed it replicated, so we imaged it from a backup server and ran sysprep with the OOBE and generalize options. I had to remove it from the domain, rename the machine, restart, and rejoin back to the domain. That all worked fine. Also, after uninstalling IIS and reinstalling it works as well. The problem is... that's a lot of work when you've got a production node with a lot of website nodes to deal with that all need testing before putting back into production.
If nothing else, maybe this post will help you share your pain :).