【问题标题】:Enabling Impersonation in IIS 7.5 via Powershell通过 Powershell 在 IIS 7.5 中启用模拟
【发布时间】:2011-10-14 10:16:48
【问题描述】:

希望有人能提供帮助,我正在尝试在 IIS7 的 Authenticatuin 部分下启用“ASP.Net Impersonation”,我已使用以下命令启用其他部分:

Set-WebConfigurationProperty `
    -filter /system.WebServer/security/authentication/windowsAuthentication `
    -name enabled `
    -value true `
    -location $SiteName   

但是我找不到用于设置 ASP.net 模拟的类似命令,我猜这与 ASP.net 而不是 IIS 有关。

任何见解将不胜感激。

【问题讨论】:

    标签: security iis powershell iis-7.5 impersonation


    【解决方案1】:

    试试这个:

    Set-WebConfigurationProperty `
        -Filter system.web/identity `
        -Name impersonate `
        -Value True `
        -Location $SiteName
    

    【讨论】:

    【解决方案2】:

    使用 -PSPath 代替 -Location。

    Set-WebConfigurationProperty -filter /system.web/identity -name impersonate -value true -PSPath 'IIS:\Sites\Default Web Site\WebApp'
    

    【讨论】:

    • 谢谢!! -位置让我死了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-02
    • 1970-01-01
    • 2012-08-03
    • 2020-05-19
    • 1970-01-01
    • 2013-01-29
    相关资源
    最近更新 更多