[英]Enabling Impersonation in IIS 7.5 via Powershell
I hope someone can help, I am trying to enable enable "ASP.Net Impersonation" under the Authenticatuin section in IIS7, I have enabled other sections using the following command: 我希望有人可以提供帮助,我正在尝试在IIS7的Authenticatuin部分下启用“ASP.Net Impersonation”,我使用以下命令启用了其他部分:
Set-WebConfigurationProperty `
-filter /system.WebServer/security/authentication/windowsAuthentication `
-name enabled `
-value true `
-location $SiteName
But I cannot find a similar command for setting up ASP.net Impersonation, I am guessing it has something to do with being ASP.net not IIS. 但我找不到类似的命令来设置ASP.net模拟,我猜这与ASP.net而不是IIS有关。
Any insight would be appreciated. 任何见解将不胜感激。
Try this: 试试这个:
Set-WebConfigurationProperty `
-Filter system.web/identity ` -Name impersonate `
-Value True `
-Location $SiteName
使用-PSPath而不是-Location。
Set-WebConfigurationProperty -filter /system.web/identity -name impersonate -value true -PSPath 'IIS:\Sites\Default Web Site\WebApp'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.