Remove a stuck timer job in SharePoint using Powershell

I recently had a stuck timer job in our sharepoint farm.
It seemed like an easy thing for Powershell, but it turned out to be one step more complicated – I’m not sure why, but here’s the solution I used – thanks to Todd from the Vendor I was working on for providing the fix!

We can use the Cmdlet get-SPTimerJob to see all timerjobs in our sharepoint farm.

If we add a nice little where clause, we can limit the list to a single item:

Normally I’ve been able to assign the results to a variable

ie like this:

Which works.
What didn’t work however was this:

For some reason, I got an error that there was no delete method.
Weird.

So instead:

I’m not sure what the difference is, maybe I even fat fingered it the first time..
but that’s how it got resolved.

3 thoughts on “Remove a stuck timer job in SharePoint using Powershell

  1. we’ve noticed this doesn’t only get rid of the stuck job, but it deletes the timer job itself – so this is not what we are after.

  2. Hi,

    Thank you very much for taking the time to provide us with this simple solution. I’ve experienced stuck timer jobs several times now. Thanks!

Leave a Reply