Home » Posts tagged 'get time job'
Tag Archives: get time job
Manage Timer Jobs with PowerShell
In this small post lets see how you can configure Time Jobs using PowerShell. Lets say you want to enable “Activity Feed Job” which is by default “Disabled” on the Server.
a) First run below command to Get the job definition like Name, status, GUID
Command:
get-sptimerjob | sort-object name | where {$_.Name -match “ActivityFeedJob”}
Output:
Note down the Name of the job. Usually it will be <<User Profile Service Name>>_ActivityFeedJob
More details on Get-SPTimeJob visit
http://msdn.microsoft.com/en-us/site/ff607914
b) Run below command to enable Time job
Command:
Enable-SPTimerJob -Identity <<Name of Job captured in step a>>
Output:
More details on Enable-SPTimerJob visit
http://msdn.microsoft.com/en-us/site/ff607892
c) Set timer job- Schedule a time job now after it is enabled
Command:
Set-SPTimerJob “upa_ActivityFeedJob” -schedule “Every 30 minutes between 0 and 59″
Output:
More details on Set-SPTimeJob visit
http://msdn.microsoft.com/en-us/site/ff607916
that’s it