Friday, August 9, 2013

Execute SharePoint Timer Job using PowerShell

Below PowerShell script can be used to execute the Hidden Timer Jobs in Central Administration Timer Job Definitions list.

Inputs:
WebApplication url : url of the Web application to which the timer job is added.
Timer Job name : name of the Timer Job

$webApp = Get-SPWebApplication "http://site:portnumber/
$job = $webApp.JobDefinitions | Where-Object { $_.Name -eq "Timer Job name"}
$job.Execute([System.Guid].GUID)

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...