[servman] powershell script in SCSM 2010 workflow

2015-01-09 Thread Costello, Michael
Hello all, I have a custom management pack created through the authoring tool. In the work flow all I have is a powershell script to run and a set activity status to completed, see below. [cid:image001.png@01D02BEF.C5292310] The simplified script is as follows: Function GetGroups ($object)

[servman] RE: powershell script in SCSM 2010 workflow

2015-01-09 Thread Costello, Michael
Sorry, forgot to say that is the only parameter being passed to the activity. That part works. [cid:image002.png@01D02BFE.E844E0A0] Michael Costello Nebraska Department of Roads IT Infrastructure Support Analyst 402-479-3827 From: listsad...@lists.myitforum.com

[servman] RE: powershell script in SCSM 2010 workflow

2015-01-09 Thread Brandon Ryan
One other thought, does the account you have defined as the Service Manager Workflow RunAs account have permissions on the active directory to get the groups of the user? Try running the script in the ISE as the workflow account user and see if it has the same behavior. Brandon Ryan Software

[servman] RE: powershell script in SCSM 2010 workflow

2015-01-09 Thread Brandon Ryan
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