If you need to get info about scheduled tasks on a system in PowerShell, the schtasks command has a nice switch called ”/FO” that makes it easy to get the results in a PowerShell friendly format:

$tasks = schtasks /query /v /fo CSV | convertfrom-csv

Sorry, comments are closed for this article.