, January 9, 2015 12:01 PM
To: servman@lists.myitforum.com
Subject: [servman] RE: powershell script in SCSM 2010 workflow
If all else fails, whenever I find an issue that has to do with context like
this in PowerShell, sometimes I have gotten away with using New-PsSession and
Invoke-Command to run
there.
Brandon Ryan
ClearPointe
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On
Behalf Of Costello, Michael
Sent: Monday, January 12, 2015 9:31 AM
To: servman@lists.myitforum.com
Subject: [servman] RE: powershell script in SCSM 2010 workflow
I ran the query
...@lists.myitforum.com] On
Behalf Of Brandon Ryan
Sent: Friday, January 9, 2015 11:09 AM
To: servman@lists.myitforum.com
Subject: [servman] RE: powershell script in SCSM 2010 workflow
Where is $activity_id being set? Have you checked to see if it is blank in the
script when running as part of the workflow? Do
Engineer
ClearPointe
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On
Behalf Of Costello, Michael
Sent: Friday, January 9, 2015 11:25 AM
To: servman@lists.myitforum.com
Subject: [servman] RE: powershell script in SCSM 2010 workflow
Sorry, forgot to say
Where is $activity_id being set? Have you checked to see if it is blank in the
script when running as part of the workflow? Do you have a param() statement
at the beginning of the script to accept parameters from the workflow? You
must also define parameters to send data from the workflow