Submit a ticketCall us

Solarwinds & Cisco Live! Barcelona
Join us from the 29th of January to the 2nd of February at Cisco Live 2018 in Barcelona, where we will continue to show how monitoring the network with SolarWinds will keep you ahead of the game. At our booth (WEP 1A), we will demonstrate how SolarWinds network solutions can help. As a bonus, we are also hosting a pre-event webinar - Blame the Network, Hybrid IT Edition with our SolarWinds Head Geek™, Patrick Hubbard on January 24th - GMT (UTC+0): 10:00 a.m. to 11:00 a.m. There's still time to RSVP.

Home > Success Center > Server & Application Monitor (SAM) > The installed PowerShell WebAdministration module cannot be imported  into the PowerShell session. System.ComponentModel.Win32Exception: Access is denied

The installed PowerShell WebAdministration module cannot be imported  into the PowerShell session. System.ComponentModel.Win32Exception: Access is denied

Updated December 23, 2016

Overview

After changing the AppInsight for IIS template to Agent Based Polling, the previously working template displays the error:

The installed PowerShell WebAdministration module cannot be imported 
into the PowerShell session. System.ComponentModel.Win32Exception: Access is denied 

Environment

SAM 6.2 and later

Cause 

This occurs because of the change in permission that the template now requires. Previously, the PowerShell sessions were run through a specified administrator account but now they are executed in the context of the LocalSystem account which the agent service runs under.

Resolution

 

  1. Open the Orion Web Console.
  2. Go to the AppInsight for IIS application.
  3. Edit the Application Monitor.
  4. Expand Advanced and verify that it is set to Agent. 
  5. Verify that credentials are set to Inherit Credentials From Node.
  6. Click Configure Server.

This allows the LocalSystem account to access the WebAdministration PowerShell Snap-in.

 

 

Last modified

Tags

Classifications

Public