{"id":2005,"date":"2023-11-09T09:23:31","date_gmt":"2023-11-09T14:23:31","guid":{"rendered":"http:\/\/www.insidethe.com\/blog\/?p=2005"},"modified":"2024-03-09T13:09:18","modified_gmt":"2024-03-09T18:09:18","slug":"set-the-powershell-window-title","status":"publish","type":"post","link":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/","title":{"rendered":"Set the PowerShell Window Title"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>$host.ui.RawUI.WindowTitle = \"My Useful Script is Running&nbsp;\" + $MyInvocation.MyCommand.Path;<\/code><\/pre>\n\n\n\n<p>Source: <br><a title=\"How to get the path of the currently executing script in PowerShell?\" href=\"https:\/\/www.tutorialspoint.com\/how-to-get-the-path-of-the-currently-executing-script-in-powershell\">https:\/\/www.tutorialspoint.com\/how-to-get-the-path-of-the-currently-executing-script-in-powershell<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/www.tutorialspoint.com\/how-to-get-the-path-of-the-currently-executing-script-in-powershell<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[40],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set the PowerShell Window Title - Insidethe.com<\/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:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set the PowerShell Window Title - Insidethe.com\" \/>\n<meta property=\"og:description\" content=\"Source: https:\/\/www.tutorialspoint.com\/how-to-get-the-path-of-the-currently-executing-script-in-powershell\" \/>\n<meta property=\"og:url\" content=\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/\" \/>\n<meta property=\"og:site_name\" content=\"Insidethe.com\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-09T14:23:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-09T18:09:18+00:00\" \/>\n<meta name=\"author\" content=\"Jared\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jared\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/\",\"url\":\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/\",\"name\":\"Set the PowerShell Window Title - Insidethe.com\",\"isPartOf\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#website\"},\"datePublished\":\"2023-11-09T14:23:31+00:00\",\"dateModified\":\"2024-03-09T18:09:18+00:00\",\"author\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\"},\"breadcrumb\":{\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/insidethe.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set the PowerShell Window Title\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/insidethe.com\/blog\/#website\",\"url\":\"https:\/\/insidethe.com\/blog\/\",\"name\":\"Insidethe.com\",\"description\":\"It is my space, but better than myspace\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/insidethe.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\",\"name\":\"Jared\",\"sameAs\":[\"https:\/\/www.insidethe.com\/blog\"],\"url\":\"https:\/\/insidethe.com\/blog\/author\/jared\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set the PowerShell Window Title - Insidethe.com","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:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/","og_locale":"en_US","og_type":"article","og_title":"Set the PowerShell Window Title - Insidethe.com","og_description":"Source: https:\/\/www.tutorialspoint.com\/how-to-get-the-path-of-the-currently-executing-script-in-powershell","og_url":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/","og_site_name":"Insidethe.com","article_published_time":"2023-11-09T14:23:31+00:00","article_modified_time":"2024-03-09T18:09:18+00:00","author":"Jared","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jared","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/","url":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/","name":"Set the PowerShell Window Title - Insidethe.com","isPartOf":{"@id":"https:\/\/insidethe.com\/blog\/#website"},"datePublished":"2023-11-09T14:23:31+00:00","dateModified":"2024-03-09T18:09:18+00:00","author":{"@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99"},"breadcrumb":{"@id":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/insidethe.com\/blog\/2023\/11\/set-the-powershell-window-title\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/insidethe.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Set the PowerShell Window Title"}]},{"@type":"WebSite","@id":"https:\/\/insidethe.com\/blog\/#website","url":"https:\/\/insidethe.com\/blog\/","name":"Insidethe.com","description":"It is my space, but better than myspace","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/insidethe.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99","name":"Jared","sameAs":["https:\/\/www.insidethe.com\/blog"],"url":"https:\/\/insidethe.com\/blog\/author\/jared\/"}]}},"_links":{"self":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2005"}],"collection":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/comments?post=2005"}],"version-history":[{"count":3,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2005\/revisions"}],"predecessor-version":[{"id":2119,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2005\/revisions\/2119"}],"wp:attachment":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/media?parent=2005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/categories?post=2005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/tags?post=2005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}