简体   繁体   English

IIS 8.5 - 使用 PowerShell 进行功能委派设置

[英]IIS 8.5 - Feature Delegation setting with PowerShell

I'm trying to set feature delegation to read/write using PowerShell.我正在尝试使用 PowerShell 将功能委托设置为读/写。 On a server with a default installation of IIS 8.5:在默认安装 IIS 8.5 的服务器上:

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

The command runs but the setting does not change.命令运行,但设置不会更改。 If I navigate to IIS > Management > Feature Delegation, Windows Authentication is still showing 'Read Only', not 'Read/Write'如果我导航到 IIS > 管理 > 功能委派,Windows 身份验证仍显示“只读”,而不是“读/写”

What am I missing here?我在这里想念什么?

Worked out the problem.解决了问题。 This may help someone in the future, the issue is with Metadata = "OverrideMode" , overrideMode is case sensitive!这可能对将来的某人有所帮助,问题在于Metadata = "OverrideMode" , overrideMode区分大小写! . . Correct example:正确的例子:

Metadata = "overrideMode"

Which is odd for Windows Server 2012 R2 OS.这对于 Windows Server 2012 R2 OS 来说很奇怪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM