我正在尝试使用powershell编辑applicationhost.config。
我在IIS中注意到设置已更改,但实际的applicationHost.config没有覆盖windowsAuthentication的overrideModeDefault。我需要将它设置为ALLOW
<section name="windowsAuthentication" overrideModeDefault="Deny" />
C:\Windows\System32\inetsrv\appcmd.exe set config /section:windowsAuthentication /enabled:true /commit:apphost
无论如何,使用powershell appcmd可以实现这一点吗?
答案 0 :(得分:-1)
我设法解决了这个问题
unlock config C:\Windows\System32\inetsrv\appcmd.exe section:system.webserver/security/authentication/windowsauthentication
希望这有助于其他人