Check remote computer task scheduler results and settings via command line.
It's quite hard to check one by one each server or computer whether task scheduler has run successfully or not.
To make life easier, query the remote computer or server remotely and check task scheduler result.
One liner command below will list the task scheduler settings and also its results in a nice and readable format.
/v - is for verbose so it will include all settings and of course the last run result.
schtasks /s /query /v
It would be better to have the result in a text file so it can be easily read and also keep for record purposes.
schtasks /s /query /v > Machine01_Task_Result.TXT
The command above will not display the result on the command prompt but redirect the result to the text file.
Tested in Windows 2012 to query Windows 7 client.
Tested in Windows 7 to query another Windows 7 machine.
The command should be run with proper privileges in order for the query to be successful.
Cheers..Hope it helps.
Comments
Post a Comment