Command Shell Reference
SQL Queries
Welcome to TechNet Blogs Sign in | Join | Help
What does this task target?

This will return which [typed] class the specified task will run against.

foreach ($targetId in get-task | where {$_.displayname -match "task name"} | foreach-object {$_.get_target().id.tostring()}) {get-monitoringclass | where {$_.id -eq $targetId} | select displayname}

main menu

Posted: Thursday, April 09, 2009 5:07 PM by jtalmquist

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker