Hi All,
I am investigating if it is possible for PowerShell to check multiple Windows XP client machines for a scheduled task and if the status is "could not run" then it should run some commands.
I am able to run the following command:
Schtasks.exe /query /s hostname
but this shows all the scheduled tasks and all their status.
Once I am able to confirm the status of the specific scheduled task is "could not run", then the script should run some commands and store a text or log file in C:\Temp.
Any guidance or help would be appreciated.
PowerShell newbie.
-Steve