On a Windows7 machine I am trying I can run a query to view all the scheduled tasks using schtasks.exe
This is fine but I would also like to filter the result set using something like
schtasks /query | where { $_.TaskName -eq "myTask" }
The problem is I don't this schtasks returns a properly formatted list for the where function to work.
I've also tried:
schtasks /query /FO LIST
schtasks /query | format-list | where ....
those don't work either.
What would be the best way to query the schtasks on a local computer using Win7 and be able to filter them