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

9/18/2019 10:01 AM

Last published date

4/8/2025 9:15 PM

Overview

When monitoring AppInsight for IIS on a server that changed its polling method from WMI to agent software, you will come across the following error:

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

Server Application Monitor

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

Disable AppInsight for IIS under List Resources
  1. Go to Manage Nodes
  2. Tick the affected server
  3. Click List Resources
  4. Uncheck AppInsight for IIS
  5. Hit Submit
Re-enable AppInsight for IIS
  1. Run another List Resources on the affected server
  2. Click 'Force Refresh' if prompted
  3. Check AppInsight for IIS
  4. Hit Submit

If receiving the Access is Denied message then you should
  • Attempt assigning a different credential to the application monitor
or
  • Change the credential to 'inherit from node' to use the local system account to poll the application data.