security - 通过 Powershell 在 IIS 7.5 中启用模拟

标签 security iis powershell iis-7.5 impersonation

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

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

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

任何见解将不胜感激。

最佳答案

尝试这个:

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

关于security - 通过 Powershell 在 IIS 7.5 中启用模拟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6847647/

相关文章:

powershell - 重新启动后,以管理员模式运行批处理文件

java - Spring 全局方法安全性和 Aspectj

iis - gif 文件在 Windows azure 中给出 404 错误

c# - 如何以编程方式创建 Azure 网站和 SQL 数据库?

powershell - 在 Powershell 中,按记录类型拆分大型文本文件的最有效方法是什么?

asp.net-core - 如何在 .Net Core Web API 中完全消除 COR 错误?

security -/var/lib/kubelet/pods下的目录权限

git - 如何验证 git merge 不包含额外的更改?

google-chrome - "Secure origin"不是HTTPS吗?

asp.net-mvc - 登录后如何通过 MVC 提供静态文件(我正在尝试向我的大型 MVC 项目添加一个 Angular 迷你 SPA)