通过PowerShell在IIS 7.5中启用模拟 [英] Enabling Impersonation in IIS 7.5 via Powershell

查看:0
本文介绍了通过PowerShell在IIS 7.5中启用模拟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人能帮忙,我正在尝试启用IIS7中的身份验证部分下的启用"ASP.NET模拟",我已经使用以下命令启用了其他部分:

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

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

如果您有任何见解,我们将不胜感激。

推荐答案

试试:

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

这篇关于通过PowerShell在IIS 7.5中启用模拟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆