I am trying to disable anonymous authentication by running this command:
C:\Windows\system32>%systemroot%\system32\inetsrv\appcmd.exe set config "Reviewer" /section:anonymousAuthentication /enabled:false
I am getting this error:
ERROR ( message:Can not set attribute "enabled" to value "false".. Reason: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". . )
Can you please help me?
I managed to resolve the locking issue by adding /commit:apphost
at the end.
%systemroot%\system32\inetsrv\appcmd.exe set config "Reviewer" /section:system.webServer/security/authentication/anonymousAuthentication /enabled:false /commit:apphost