{"id":7417,"date":"2021-02-01T06:31:46","date_gmt":"2021-02-01T05:31:46","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7417"},"modified":"2021-02-01T20:17:24","modified_gmt":"2021-02-01T19:17:24","slug":"powershell-change-the-title-of-the-powershell-window-from-a-script","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/powershell-change-the-title-of-the-powershell-window-from-a-script\/","title":{"rendered":"Powershell: Change the title of the powershell window from a script"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7417 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_7417')){$('.twoclick_social_bookmarks_post_7417').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Powershell%3A%20Change%20the%20title%20of%20the%20powershell%20window%20from%20a%20script\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Asometimes%20it%20would%20be%20nice%20to%20see%20the%20status%20of%20a%20script%20in%20the%20title%20of%20the%20powershell%20window.%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-change-the-title-of-the-powershell-window-from-a-script\\\/\",\"post_id\":7417,\"post_title_referrer_track\":\"Powershell%3A+Change+the+title+of+the+powershell+window+from+a+script\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>sometimes it would be nice to see the status of a script in the title of the powershell window.<br \/>\n<!--more--><br \/>\nThis is quite simply. Use the $host object to set the title of your choice:<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; $host.ui.RawUI.WindowTitle = &quot;My new title&quot;\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, sometimes it would be nice to see the status of a script in the title of the powershell window.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344,5],"tags":[122,1522,133,1521,242],"class_list":["post-7417","post","type-post","status-publish","format-standard","hentry","category-powershell-scripting","category-windowsknowhow","tag-change","tag-from-script","tag-powershell","tag-title","tag-window"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7417","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=7417"}],"version-history":[{"count":6,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7417\/revisions"}],"predecessor-version":[{"id":7423,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7417\/revisions\/7423"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}