Hide this message
Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.
Updated December 23, 2016
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
SAM 6.2 and later
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.
This allows the LocalSystem account to access the WebAdministration PowerShell Snap-in.