get object target id in a workflow

When using the PowerShell activity (NOT the PowerShell Workflow Activity) in a workflow, how can I get an object ID?

I.e. with PowerShellWorkflowActivity you can use $fimwf.targetID but how can I do that in a normal Powershell activity?

Thanks,
JD

April 27th, 2015 2:45am

Hi JD,

What kind of Powershell Activity do you use?

The way to get ObjectID (of the target) is coded in the PowerShell Workflow Activity. So, if it's not present in your activity, I'm afraid that you have to find another way...

Regards,
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 7:01am

Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

JD

  • Marked as answer by JOTdude 2 hours 50 minutes ago
April 28th, 2015 12:32am

Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

JD

  • Marked as answer by JOTdude Tuesday, April 28, 2015 4:31 AM
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2015 4:31am

Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

JD

  • Marked as answer by JOTdude Tuesday, April 28, 2015 4:31 AM
April 28th, 2015 4:31am

Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

JD

  • Marked as answer by JOTdude Tuesday, April 28, 2015 4:31 AM
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2015 4:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics