Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way to check if a config section is locked or not in IIS. Any kind of command is ok (cmd, vbscript)

This is my first time asking in this website. I'm very appreciated for any reply. Thanks very much!

share|improve this question
    
Do you mean the web.config? –  booyaa Jan 11 '13 at 9:41

1 Answer 1

It can be locked a couple different ways, but the easy way that works most times is in IIS Manager at the server level. Check "Feature Delegation". That shows the section types. If it's Read Only then it's locked. You can check the same at the site or folder level.

I've rarely found that admins change that, so 99.9% of the time the Feature Delegation settings should properly reflect the setting.

Another way within IIS Manager is to visit the section and see if the status bar in the bottom left says that it's a change to web.config (not locked) or applicationHost.config (locked).

And of course you could try to make the change in web.config and see if the site blows up.

To check for the rarely exception (a server admin updates the server), check administration.config where the delegation and lock settings are applied.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.