【发布时间】:2020-07-10 13:21:10
【问题描述】:
我有一个启用了 Windows 身份验证的现有 IIS Web 应用程序。当我运行此命令来设置绑定时,Windows 身份验证失败,我必须手动禁用并重新启用 Windows 身份验证才能使其工作。
import-module WebAdministration
Set-ItemProperty "IIS:\Sites\Test\My" -name bindings -value (@{protocol="https";bindingInformation="*:443:my.test.com";sslFlags=1},@{protocol="net.tcp";bindingInformation="808:my.test.com"})
我曾尝试使用 powershell 设置 windows 身份验证,但没有效果。
Set-WebConfigurationProperty -filter /system.WebServer/security/authentication/WindowsAuthentication -name enabled -value true -PSPath "IIS:\Sites\TestMy"
有什么建议吗?
【问题讨论】:
标签: powershell iis windows-authentication