get assigned user from a manual activity

Nov 17, 2010 at 11:40 PM

Hi all,

is it possible to retrieve the the user assigned to a manual activity?

I've tried something like this:

$activity = get-scsmobject system.workitem.activity.manualactivity$

forearch ($i in $activity) { $i | fl }

but i cannot see nothing about the assigned user...


any help will be appreciated



Nov 18, 2010 at 8:10 AM

try it

$ActivityClass = Get-SCSMClass -name "system.workitem.activity.manualactivity$"

Get-SCSMObject -Class $ActivityClass | %{	
	$ActivityID = $_.DisplayName
	Get-SCSMObjectProjection "System.WorkItem.Activity.ManualActivityProjection" | ?{
			$_.Object.ToString() -eq $ActivityID