December 11th, 2012

PowerTip: Query Running Scheduled Tasks

Doctor Scripto
Scripter

Summary: Use Windows PowerShell 3.0 to query running scheduled tasks.

Hey, Scripting Guy! Question How do I query “running” scheduled tasks on my computer?

Hey, Scripting Guy! Answer Charlotte PowerShell User Group member Brian Wilhite says the following: With Windows PowerShell 3.0, we have a ton of new cmdlets, and we’ll see one of those cmdlets here.  Get-ScheduledTask can be used to query scheduled tasks configured for a computer. The following expression will query running tasks on your computer:

Get-ScheduledTask | Where-Object State -eq Running

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.