Link to home
Get AccessLog in
Avatar of Ken H.
Ken H.

asked on

Create list to run in powershell

I have a program that has some issues and has created tens of thousands of stale jobs. The powershell language for this program allows me to stop these jobs, but does not allow me to put in a range of job ID's.

For example to kill a job i can use stop-job -jobid 999   .... the -jobid does not accept wildcards or ranges.

I need to kill all the jobs in the range of 38751 to 101446 ... how can i programmatically do this? I'm guessing it would be to loop -jobid +1 ... but i'm a powershell idiot. I have no idea how to build this syntax.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access