Set-WebConfiguration //System.webServer/Security/Authentication/anonymousAuthentication -metadata overrideMode -value Allow -PSPath IIS:/
Set-WebConfiguration //System.webServer/Security/Authentication/windowsAuthentication -metadata overrideMode -value Allow -PSPath IIS:/
Set-WebConfiguration //System.Web/Security/FormsAuthenticationModule -metadata overrideMode -value Allow -PSPath IIS:/ пробовал такую
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>
</configuration>
xmllint --xpath "//system.webServer/security/authentication/anonymousAuthentication/@enabled" web.configenabled="true"web.config нет
Set-WebConfiguration //System.webServer/Security/Authentication/anonymousAuthentication -metadata overrideMode -value Allow -PSPath IIS:/
Set-WebConfiguration //System.webServer/Security/Authentication/windowsAuthentication -metadata overrideMode -value Allow -PSPath IIS:/C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.configSet-WebConfiguration //System.Web/authentication -metadata overrideMode -value Allow -PSPath MACHINE/WEBROOT