Applications Systems

Special character not escaped in PowerShell Script

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.

First published date

10/23/2018 6:40 PM

Last published date

6/3/2020 8:00 AM

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.

 

Product section

Server Application Monitor

Cause

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

Resolution

Please Remove the Quote ' or Backtick `  from the password