Enable a Timer Job
Scenario/Problem: You want to enable a specific timer job.
Solution: Use the Enable-SPTimerJob
cmdlet.
To enable a timer job, execute the Enable-SPTimerJob
cmdlet with the Identity
of the timer job or a timer job variable. Listing 4.24 shows a sample command line.
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"Enable-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.