{"id":4826,"date":"2017-06-25T21:40:50","date_gmt":"2017-06-25T19:40:50","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=4826"},"modified":"2022-01-20T21:17:09","modified_gmt":"2022-01-20T20:17:09","slug":"powershell-method-not-found-system-threading-tasks-task-system-threading-tasks-task-runsystem-action","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/powershell-method-not-found-system-threading-tasks-task-system-threading-tasks-task-runsystem-action\/","title":{"rendered":"Powershell: Method not found: &#8216;System.Threading.Tasks.Task System.Threading.Tasks.Task.Run(System.Action)&#8217;"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_4826 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_4826')){$('.twoclick_social_bookmarks_post_4826').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Powershell%3A%20Method%20not%20found%3A%20%26%238216%3BSystem.Threading.Tasks.Task%20System.Threading.Tasks.Task.Run%28System.Action%29%26%238217%3B\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Awhen%20you%20tried%20to%20start%20powershell%20and%20the%20window%20opens%20and%20closes%20immediately.%0D%0A%0D%0AOpen%20a%20cmd%20and%20start%20powershell%20by%20calling%20powershell.exe%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/powershell-method-not-found-system-threading-tasks-task-system-threading-tasks-task-runsystem-action\\\/\",\"post_id\":4826,\"post_title_referrer_track\":\"Powershell%3A+Method+not+found%3A+%26%238216%3BSystem.Threading.Tasks.Task+System.Threading.Tasks.Task.Run%28System.Action%29%26%238217%3B\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>when you tried to start powershell and the window opens and closes immediately.<\/p>\n<p>Open a cmd and start powershell by calling powershell.exe<br \/>\n<!--more--><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nC:\\&gt; powershell.exe\r\nWindows PowerShell terminated with the following error:\r\n Could not load type 'System.Management.Automation.Runspaces.EarlyStartup' from assembly 'System.Management.Automation, Version=5.1.0.0...'.\r\nor \r\n&quot;System.Management.Automation.Tracing.PSEtwLog' threw an exception&quot;\r\n<\/pre>\n<p>This error occures if Windows Management Framework 5.1 is installed and not the previous Verions 4 or 5.0 on which it depends or .NET Framework is corrupt.<\/p>\n<p>Uninstall Windows Management Versions 5.1 and 5.0 and install install the latest 4.xx Version of .NET Framework , then Windows Management Version 4, 5.0 and 5.1.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, when you tried to start powershell and the window opens and closes immediately. Open a cmd and start powershell by calling powershell.exe<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[1066,1064,133,185,1065,20],"class_list":["post-4826","post","type-post","status-publish","format-standard","hentry","category-windows","category-windowsknowhow","tag-management-framework-5-1","tag-method-not-found","tag-powershell","tag-run","tag-task","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=4826"}],"version-history":[{"count":8,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4826\/revisions"}],"predecessor-version":[{"id":8341,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/4826\/revisions\/8341"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=4826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=4826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=4826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}