{"id":9921,"date":"2024-10-23T16:32:57","date_gmt":"2024-10-23T14:32:57","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9921"},"modified":"2024-10-24T16:38:09","modified_gmt":"2024-10-24T14:38:09","slug":"powershell-7-use-powershell-7-as-winrm-shell","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/powershell-7-use-powershell-7-as-winrm-shell\/","title":{"rendered":"Powershell 7: Use Powershell 7 as WinRM shell"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9921 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_9921')){$('.twoclick_social_bookmarks_post_9921').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Powershell%207%3A%20Use%20Powershell%207%20as%20WinRM%20shell\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20enter%20a%20Powershell%207%20shell%20over%20WinRM%20setup%20the%20machines%20as%20followed%3A%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-7-use-powershell-7-as-winrm-shell\\\/\",\"post_id\":9921,\"post_title_referrer_track\":\"Powershell+7%3A+Use+Powershell+7+as+WinRM+shell\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to enter a Powershell 7 shell over WinRM setup the machines as followed:<br \/>\n<!--more--><br \/>\nOn the target machine install Powershell 7 and select enable powershell remoting during the setup.<\/p>\n<p>On the client machine set enter session<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; $PSSessionConfigurationName = 'PowerShell.7'\r\nPS D:\\&gt;  enter-pssession myHost.myDomain.org\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to enter a Powershell 7 shell over WinRM setup the machines as followed:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344,5],"tags":[2062,2060,2061,1425,1173],"class_list":["post-9921","post","type-post","status-publish","format-standard","hentry","category-powershell-scripting","category-windowsknowhow","tag-default-shell","tag-powershell-7","tag-psremoting","tag-shell","tag-winrm"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9921","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=9921"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9921\/revisions"}],"predecessor-version":[{"id":9922,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9921\/revisions\/9922"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}