Geeks With Blogs
Reidar Husmo SharePoint from the trenches
Starting timer jobs from Powershell is easy.
Get the job, execute:
$webApp = Get-SPWebApplication "http://$($env:computername)/"
$job = $webApp.JobDefinitions | Where-Object { $_.Name -eq "<timer job name>"}
$job.Execute([System.Guid].GUID) # In my timer job I don't actually use the guid, so just create a new one
Write-Host "Done."

...mostly as a reminder to myself. :-)
Posted on Tuesday, March 20, 2012 12:14 PM SharePoint 2010 , Powershell | Back to top

Comments on this post: Executing timer jobs from Powershell

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Norgean | Powered by: