List Job Scheduled To Run Under A Particular User

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
harish1118
Posts: 1
Joined: 11 Jun 2015 12:02

List Job Scheduled To Run Under A Particular User

#1 Post by harish1118 » 11 Jun 2015 12:10

i need to check in task schedular which all jobs are scheduled under a particular user . suppose i have jobs in task scheduler : A, B and C . A job when run, it runs under user "XYZ".
Job B and C they run under user "RQS".

is it possible to list out the jobs which are running under "RQS" using dos command or batch script ?

I need to disable those jobs running under "RQS" user .

Any help would be very appreciable. I am stuck in this task from last 2-3 week ..
Thanks !!!

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: List Job Scheduled To Run Under A Particular User

#2 Post by Squashman » 11 Jun 2015 12:34

Code: Select all

schtasks /query /V /FO CSV |find /I "RQS"

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: List Job Scheduled To Run Under A Particular User

#3 Post by Ed Dyreen » 11 Jun 2015 13:47

you got stuck in this task from last 2-3 week, yet you got an answer after 24 minutes.

what took you so long ?

Post Reply