Prepare the PowerShell website for configuration
To configure IIS:
- Open a command prompt in the Run as Administrator context.
- Change the directory to
C:\Windows\System32\Inetsrv
. - Type:
appcmd.exe unlock config -section:system.webServer/security/authentication/windowsAuthentication
, and then press Enter. - Open PowerShell in the Run as Administrator context.
- Type:
Import-Module WebAdministration
, and then press Enter. - Type:
(Get-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell').enabled
and then press Enter to determine if Windows Authentication was configured.- If the value returned is True, you do not need to do anything.
- If the value returned is False, then take the following steps:
- Type:
Set-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell' -value True
and then press Enter. - Type:
(Get-WebConfiguration system.webServer/security/authentication/windowsAuthentication 'IIS:\sites\Default Web Site\PowerShell').enabled
to verify the setting has changed. - Close PowerShell.
In the open command prompt, type:
appcmd.exe lock config -section:system.webServer/security/authentication/windowsAuthentication
, and then press Enter.- Close the command prompt.
- Type:
- Configure AppInsight for Exchange by clicking Configure Server.