通过Powershell在IIS 7.5中启用模拟

Iai*_*ain 4 security iis powershell impersonation iis-7.5

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

Set-WebConfigurationProperty `
    -filter /system.WebServer/security/authentication/windowsAuthentication `
    -name enabled `
    -value true `
    -location $SiteName   
Run Code Online (Sandbox Code Playgroud)

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

任何见解将不胜感激.

Vid*_*sli 7

试试这个:

Set-WebConfigurationProperty `
    -Filter system.web/identity `
    -Name impersonate `
    -Value True `
    -Location $SiteName
Run Code Online (Sandbox Code Playgroud)