Submit a ticketCall us

WebinarDatabase Roundtable – Expert Database Professionals Feel Your Pain

In this video broadcast, Head Geek™ Tom LaRock is joined by Karen Lopez, Tim Chapman, and David Klee. They’ve known each other for many years, so this discussion was like four friends getting together to talk data and databases. They discussed diagnostic data collection, common performance root causes, reactive tuning versus proactive, and more. Join us for an engaging discussion on these topics! Plus, Tom LaRock will be available to answer your questions live.

Register now.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > Maintain equals sign (=) in PowerShell script arguments (SAM)

Maintain equals sign (=) in PowerShell script arguments (SAM)

Updated July 17, 2018


This article describes how to resolve an issue that occurs when adding an equals sign (=) to a PowerShell monitoring script. When you click the Get Script Output button and run the script, the equals sign disappears along with any code after it. Only the first part of the provided argument is displayed as an output, with an additional '-' sign at the beginning.

An "equals sign" is also known as an "equality sign".


  • SAM 6.5 and later


SAM only recognizes the first part of the script that appears before the equals sign, as shown in this example:



This issue will be fixed in a future SAM release. See below for an interim workaround. 



Add a prefix so the script recognizes the two separate arguments; the first argument contains a new prefix and the second has the actual argument including the equality sign, as shown here: 


Additional changes to the script may be required, as shown in this example:




See also: 


Last modified