Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

Home > Success Center > Server & Application Monitor (SAM) > Special character not escaped in PowerShell Script

Special character not escaped in PowerShell Script

Updated 8-22-2016

Overview

In SAM, PowerShell scripts used for Microsoft.PowerShell session configuration contain a placeholder of ${PASSWORD} as seen in this code: $password = '${PASSWORD}' You should replace the placeholder including the single quotes. SAM does not escape the single quotes. If you do not remove the single quotes, data may not poll for AppInsight for IIS.

Environment

  • SAM 6.2.4

 

Cause 

Single quotes for the password placeholder are not escaped. You should replace these when adding a password for the PowerShell script.

 

Resolution

Remove the single quotes when adding the password.

 

 

 

 

Last modified
09:50, 7 Sep 2016

Tags

Classifications

Public