Applications Systems
AppInsight for IIS error: PowerShell WebAdministration module test failed after changing from WMI to agent polling method in SAM
This article address an error in AppInsight for IIS after a server was changed from WMI to agent polling method
First published date
Last published date
Overview
PowerShell WebAdministration module test failed.
Web Administration test failed: PowerShell WebAdministration module is not installed.
Alternatively, you may receive the following message:
WebAdministration module cannot be imported into the PowerShell session. System.ComponentModel.Win32Exception: Access is denied
Product section
Cause
- AppInsight for IIS was first configured to work on remote monitoring when the server was still on WMI polling method
- Invalid credential assigned to the application
Resolution
- Go to Manage Nodes
- Tick the affected server
- Click List Resources
- Uncheck AppInsight for IIS
- Hit Submit
- Run another List Resources on the affected server
- Click 'Force Refresh' if prompted
- Check AppInsight for IIS
- Hit Submit
If receiving the Access is Denied message then you should
- Attempt assigning a different credential to the application monitor
- Change the credential to 'inherit from node' to use the local system account to poll the application data.