0 Replies Latest reply on Jul 16, 2015 4:02 PM by charlieherndon

    powershell call from SW creates an array argument from each word of the description

    charlieherndon

      Is there a way around this issue?  Any space turns into a comma in the argument array.

       

      Our current powershell call from the SW alert -

      powershell C:\snpowershell.ps1  ${N=SwisEntity;M=Caption}  ${N=Generic;M=S}  ${N=Alerting;M=AlertMessage} {keep adding variables....}

       


      This produces the following argument string using data passed from the alert -

      [10.59.55.55, 2015-07-16T10:57:45, SW, to, SN, powershell, alert, for, memory, utilization, was, triggered.]

       


      Which needs to be this since the comma separates the array values in powershell -

      [10.59.55.55, 2015-07-16 10:57:45, SW to SN powershell alert for memory utilization was triggered.]