RSS

check OS’s schedule task

02 Jun

schtasks /Query /FO CSV /V >> e:\yangxun\result.csv

 $a = import-csv e:\yangxun\result.csv

$a | ? {$_.author -ne “Microsoft Corporation” -and $_.author -ne “Microsoft” -and $_.author -ne “author” -and $_.author -ne “n/a” -and $_.’scheduled task state’ -eq ‘enabled’}  | fl author,taskname,’task to run’,’run as user’,’schedule type’

$a | ? {$_.author -notmatch “Microsoft Corporation|Microsoft|author|n/a” -and $_.’scheduled task state’ -eq ‘enabled’} | fl author,taskname,’task to run’,’run as user’,’schedule type’

Advertisements
 
Leave a comment

Posted by on June 2, 2013 in others

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: