{"id":851,"date":"2012-02-23T13:06:43","date_gmt":"2012-02-23T13:06:43","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=851"},"modified":"2012-02-26T11:16:22","modified_gmt":"2012-02-26T11:16:22","slug":"quick-tip-4","status":"publish","type":"post","link":"http:\/\/www.stuartroberts.net\/index.php\/2012\/02\/23\/quick-tip-4\/","title":{"rendered":"Get SharePoint Timer Job Name"},"content":{"rendered":"<p><strong>SharePoint Short #4<\/strong><br \/>\nAs a follow up to my recent post <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/02\/21\/start-sharepoint-timer-job-script\/\" title=\"Start SharePoint Timer Job Script\" target=\"_blank\">Start SharePoint Timer Job Script<\/a>, that demonstrates how to start a specific timer job by it&#8217;s internal name, the following is a PowerShell script for retrieving the internal name from its display title.<\/p>\n<p>For example, to get the internal name for the <em>Delete Job History<\/em> timer job, run the following script:<\/p>\n<pre lang=\"powershell\">\r\nGet-SPTimerJob | Where {$_.Title -eq \"Delete Job History\"} | ft id,name\r\n<\/pre>\n<p>Will provide the following output:<\/p>\n<pre lang=\"winbatch\">\r\nId                                      Name\r\n--                                      -----\r\ncbe86d89-8ed4-49fa-8b84-f814f9a67ab9    job-delete-job-history\r\n<\/pre>\n<p>To list all timer jobs and their internal names, run the following script:<\/p>\n<pre lang=\"powershell\">\r\nGet-SPTimerJob | Sort-Object title | ft title,name\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SharePoint Short #4 As a follow up to my recent post Start SharePoint Timer Job Script, that demonstrates how to start a specific timer job by it&#8217;s internal name, the following is a PowerShell script for retrieving the internal name &hellip; <a href=\"http:\/\/www.stuartroberts.net\/index.php\/2012\/02\/23\/quick-tip-4\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[44],"tags":[81,45],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/plx2I-dJ","_links":{"self":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/851"}],"collection":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=851"}],"version-history":[{"count":8,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/851\/revisions"}],"predecessor-version":[{"id":877,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/851\/revisions\/877"}],"wp:attachment":[{"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}