Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Status of Scheduled Task

$
0
0

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


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>