February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to obtain a specific timer job reference.
Solution: Use the Get-SPTimerJob cmdlet to assign a variable the results using the -Identity parameter.
Providing the identity of the timer job with the Get-SPTimerJob cmdlet retrieves a specific timer job. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 4.23.
Listing 4.23. Assigning a Variable to a Specific Timer Job
$timerJob = Get-SPTimerJob -Identity "DocIDEnable"
In this case, the Identity parameter is the name shown when retrieving all timer jobs (Get-SPTimerJob). You also can use the GUID of the timer job.
Read now
Unlock full access