5

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:

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.

Any insight would be appreciated.

KyleMit
  • 30,350
  • 66
  • 462
  • 664
Iain
  • 6,392
  • 2
  • 30
  • 50

2 Answers2

7

Try this:

Set-WebConfigurationProperty `
    -Filter system.web/identity `
    -Name impersonate `
    -Value True `
    -Location $SiteName
KyleMit
  • 30,350
  • 66
  • 462
  • 664
Vidar Kongsli
  • 826
  • 2
  • 9
  • 20
3

Use -PSPath instead of -Location.

Set-WebConfigurationProperty -filter /system.web/identity -name impersonate -value true -PSPath 'IIS:\Sites\Default Web Site\WebApp'
Ian
  • 31
  • 2