Submit a ticketCall us

Training ClassSign up for Network Performance Monitor (NPM) and Scalability instructor-led classes

Attend our instructor-led classes, provided by SolarWinds® Academy, to discuss the more advanced monitoring mechanisms available in NPM as well as how to tune your equipment to optimize its polling capabilities. NPM classes offered:
NPM Custom Monitoring and Polling
Orion Platform Scalability

Reserve your seat.

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