Below PowerShell
script can be used to execute the Hidden Timer Jobs in Central Administration
Timer Job Definitions list.
$webApp = Get-SPWebApplication "http://site:portnumber/
$job = $webApp.JobDefinitions | Where-Object { $_.Name -eq "Timer Job name"}
$job.Execute([System.Guid].GUID)
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