Submit a ticketCall us

AnnouncementsFace your biggest database issues head-on

Our new eCourse helps you navigate SQL Server performance blocks by teaching you how to recognize and deal with the three DBA Disruptors: Performance Hog, Blame Shifter, and Query Blocker. Register today to learn how to defend your environment and fend off menacing disruptions.

Register for your free eCourse.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > AppInsight for IIS - Polling produces error: Unexpected token

AppInsight for IIS - Polling produces error: Unexpected token

Created by Tiarnan Stacke, last modified by Caroline Juszczak on Aug 02, 2018

Views: 827 Votes: 0 Revisions: 7



AppInsight for IIS polling produces an error similar to the following

Unexpected token 'xXBN*' $uri = 'https: //'
$uriTemplate = '' $configurationName = 'Microsoft.PowerShell'
$retryConnectUsingFdqn = $False
$macroMissingWindowsCredentials = 'IisPowerShellMissingWindowsCredentials'
$macroUnableConnect = 'IisUnableConnectWinRmWindows'
$macroSessionsDepleted = 'IisSessionsDepletedWinRmWindows'
$macroSessionClosed = 'IisSessionClosedWinRmWindows'
$sessWsman = SwiGetPsSession $ip $login $uri $password


Server & Application Monitor 6.2+


A single quote is is not a valid character to be used in the Username/Password of the credentials used for polling.


Change the credentials being used for polling to not use the special character single quote (').


Last modified