References > AppInsight Help > AppInsight for Exchange: Prepare PowerShell Web

Prepare the PowerShell web site for configuration

Configure IIS

  1. Open a command prompt in the Run as Administrator context.
  2. Change the directory to C:\Windows\System32\Inetsrv.
  3. Type: appcmd.exe unlock config -section:system.webServer/security/authentication/windowsAuthentication, and then press Enter.
  4. Open PowerShell in the Run As Administrator context.
  5. Type: Import-Module WebAdministration, and then press Enter.
  6. Type: (Get-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell').enabled and then press Enter to determine if Windows Authentication has been configured.
    1. If the value returned is True, you do not need to do anything.
    2. If the value returned is False, then take the following steps:
      1. Type: Set-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell' -value True and then press Enter.
      2. Type: (Get-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell').enabled to verify the setting has changed.

      3. Close PowerShell.
      4. In the open command prompt, type: appcmd.exe lock config -section:system.webServer/security/authentication/windowsAuthentication, and then press Enter.

      5. Close the command prompt.
  7. Configure AppInsight for Exchange by clicking Configure Server.