Disable a Timer Job

Scenario/Problem: You want to disable a specific timer job.

Solution: Use the Disable-SPTimerJob cmdlet.

To disable a timer job, execute the Disable-SPTimerJob cmdlet with the Identity of the timer job or a timer job variable. Listing 4.25 shows a sample command line.

Listing 4.25. Disabling a Timer Job

$timerJob = Get-SPTimerJob -Identity "DocIDEnable"Disable-SPTimerJob $timerJob

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.