【问题标题】:IIS 8.5 - Feature Delegation setting with PowerShellIIS 8.5 - 使用 PowerShell 的功能委派设置
【发布时间】:2020-05-20 11:34:21
【问题描述】:

我正在尝试使用 PowerShell 将功能委托设置为读/写。在默认安装 IIS 8.5 的服务器上:

$property = @{
    Filter   = "/system.webServer/security/authentication/windowsAuthentication"
    Force    = $true
    PSPath   = "IIS:/"
    Value    = "Allow"
    Metadata = "OverrideMode"
}
Set-WebConfiguration @property

命令运行,但设置未更改。如果我导航到 IIS > 管理 > 功能委派,Windows 身份验证仍显示“只读”,不是“读/写”

我在这里错过了什么?

【问题讨论】:

    标签: powershell iis


    【解决方案1】:

    解决了问题。这可能对将来的某人有所帮助,问题在于Metadata = "OverrideMode",overrideMode 区分大小写!。正确示例:

    Metadata = "overrideMode"
    

    这对于 Windows Server 2012 R2 操作系统来说很奇怪。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-18
      • 1970-01-01
      • 2021-12-03
      • 1970-01-01
      • 2014-02-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多