{"id":4212,"date":"2015-07-01T00:00:08","date_gmt":"2015-07-01T00:00:08","guid":{"rendered":"https:\/\/new.wincm.ch\/?p=4212"},"modified":"2024-09-23T05:10:34","modified_gmt":"2024-09-23T05:10:34","slug":"sccm-re-running-ts-with-powershell","status":"publish","type":"post","link":"https:\/\/www.wincm.ch\/en\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/","title":{"rendered":"Re-running Task Sequence mit PowerShell"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element  vc_custom_1669898777374\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>Um eine bereits ausgef\u00fchrte\u00a0Tasksequenz nochmals zu starten, kann mittels PowerShell die History gel\u00f6scht werden:<\/p>\n<pre><code class=\"language-powershell\" data-line=\"\">$TSID = &quot;XXXXXXXX&quot; Get-WmiObject -Namespace &quot;root\\ccm\\scheduler&quot; -Class ccm_scheduler_history | where {$_.ScheduleID -like &quot;*$TSID*&quot;} | ft ScheduleID # Outputs the Schedule ID \nGet-WmiObject -Namespace &quot;root\\ccm\\scheduler&quot; -Class ccm_scheduler_history | where {$_.ScheduleID -like &quot;*$TSID*&quot;} | Remove-WmiObject # Deletes the Schedule \nGet-WmiObject -Namespace &quot;root\\ccm\\scheduler&quot; -Class ccm_scheduler_history | where {$_.ScheduleID -like &quot;*$TSID*&quot;} | ft ScheduleID # No output confirms the deletion \nGet-Service | where {$_.Name -eq &quot;CCMExec&quot;} | Restart-Service # Restart the SMS Agent Host service<\/code><\/pre>\n<p>Wichtig: Bei dem TS Deployment muss die Option &#8222;Rerun behavior&#8220; auf &#8222;Always rerun program&#8220; gesetzt sein.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.<\/p>","protected":false},"author":1,"featured_media":4238,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,36],"tags":[49,48,47],"class_list":["post-4212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sccm","category-powershell","tag-powershell","tag-sccm","tag-tasksequence","category-4","category-36","description-off"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wincm.ch\/en\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM\" \/>\n<meta property=\"og:description\" content=\"Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wincm.ch\/en\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Windows Client Management AG - WinCM\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-01T00:00:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-23T05:10:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#\\\/schema\\\/person\\\/fa3a478a5faba7d66942c880e441e74e\"},\"headline\":\"Re-running Task Sequence mit PowerShell\",\"datePublished\":\"2015-07-01T00:00:08+00:00\",\"dateModified\":\"2024-09-23T05:10:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/\"},\"wordCount\":58,\"publisher\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/blog_powershell.jpg\",\"keywords\":[\"PowerShell\",\"SCCM\",\"Tasksequence\"],\"articleSection\":[\"Microsoft Endpoint Configuration Manager\",\"PowerShell\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/\",\"url\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/\",\"name\":\"Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/blog_powershell.jpg\",\"datePublished\":\"2015-07-01T00:00:08+00:00\",\"dateModified\":\"2024-09-23T05:10:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/blog_powershell.jpg\",\"contentUrl\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2015\\\/07\\\/blog_powershell.jpg\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/2015\\\/07\\\/01\\\/sccm-re-running-ts-with-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/www.wincm.ch\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Re-running Task Sequence mit PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/\",\"name\":\"Windows Client Management AG - WinCM\",\"description\":\"Software Deployment Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#organization\",\"name\":\"Windows Client Management AG\",\"url\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wincm_logo_small.png\",\"contentUrl\":\"https:\\\/\\\/www.wincm.ch\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/wincm_logo_small.png\",\"width\":211,\"height\":50,\"caption\":\"Windows Client Management AG\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/#\\\/schema\\\/person\\\/fa3a478a5faba7d66942c880e441e74e\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/www.wincm.ch\"],\"url\":\"https:\\\/\\\/www.wincm.ch\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wincm.ch\/en\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM","og_description":"Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.","og_url":"https:\/\/www.wincm.ch\/en\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/","og_site_name":"Windows Client Management AG - WinCM","article_published_time":"2015-07-01T00:00:08+00:00","article_modified_time":"2024-09-23T05:10:34+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#article","isPartOf":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/"},"author":{"name":"admin","@id":"https:\/\/www.wincm.ch\/en\/#\/schema\/person\/fa3a478a5faba7d66942c880e441e74e"},"headline":"Re-running Task Sequence mit PowerShell","datePublished":"2015-07-01T00:00:08+00:00","dateModified":"2024-09-23T05:10:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/"},"wordCount":58,"publisher":{"@id":"https:\/\/www.wincm.ch\/en\/#organization"},"image":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg","keywords":["PowerShell","SCCM","Tasksequence"],"articleSection":["Microsoft Endpoint Configuration Manager","PowerShell"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/","url":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/","name":"Re-running Task Sequence mit PowerShell - Windows Client Management AG - WinCM","isPartOf":{"@id":"https:\/\/www.wincm.ch\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#primaryimage"},"image":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg","datePublished":"2015-07-01T00:00:08+00:00","dateModified":"2024-09-23T05:10:34+00:00","breadcrumb":{"@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#primaryimage","url":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg","contentUrl":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2015\/07\/blog_powershell.jpg","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.wincm.ch\/2015\/07\/01\/sccm-re-running-ts-with-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.wincm.ch\/"},{"@type":"ListItem","position":2,"name":"Re-running Task Sequence mit PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/www.wincm.ch\/en\/#website","url":"https:\/\/www.wincm.ch\/en\/","name":"Windows Client Management AG - WinCM","description":"Software Deployment Solutions","publisher":{"@id":"https:\/\/www.wincm.ch\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wincm.ch\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wincm.ch\/en\/#organization","name":"Windows Client Management AG","url":"https:\/\/www.wincm.ch\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wincm.ch\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2022\/10\/wincm_logo_small.png","contentUrl":"https:\/\/www.wincm.ch\/wp-content\/uploads\/2022\/10\/wincm_logo_small.png","width":211,"height":50,"caption":"Windows Client Management AG"},"image":{"@id":"https:\/\/www.wincm.ch\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wincm.ch\/en\/#\/schema\/person\/fa3a478a5faba7d66942c880e441e74e","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/95e5234e54e5efaa790dbe9c536017adc4b2bb3f8fbd9bebc688dd5aaf4c180b?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/www.wincm.ch"],"url":"https:\/\/www.wincm.ch\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/posts\/4212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/comments?post=4212"}],"version-history":[{"count":0,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/posts\/4212\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/media\/4238"}],"wp:attachment":[{"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/media?parent=4212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/categories?post=4212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wincm.ch\/en\/wp-json\/wp\/v2\/tags?post=4212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}