我希望有人可以提供帮助,我正在尝试在 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/