IIS 7 and Above
command to get the lock status of "anonymousAuthentication" from IIS
Last post Sep 20, 2019 02:29 AM by Jalpa Panchal
Sep 19, 2019 02:07 PM|prabhasb|LINK
What is the command to get the lock status of IIS "anonymousAuthentication" configuration. I tired with below command but it is not returning anything
Get-WebConfigurationLock -PSPath "IIS:\\Sites\\Mysite" -filter "//system.webServer/security/authentication/anonymousAuthentication"
Sep 20, 2019 02:29 AM|Jalpa Panchal|LINK
If you run this command
Get-WebConfigurationLock -PSPath "IIS:\\sites\\abc" -filter system.webServer/defaultDocument
it will return null if the section is unlocked.
if its lock than it will return a result like below:
You can refer this git hug link for more detail: