{"id":2951,"date":"2010-05-25T11:47:21","date_gmt":"2010-05-25T11:47:21","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2010\/05\/25\/renaming-tabs-in-the-ise\/"},"modified":"2019-02-18T13:05:55","modified_gmt":"2019-02-18T20:05:55","slug":"renaming-tabs-in-the-ise","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/renaming-tabs-in-the-ise\/","title":{"rendered":"Renaming Tabs in the ISE"},"content":{"rendered":"<p><span style=\"font-family: verdana,geneva\">When you have multiple PowerShell tabs open in the ISE, it may be handy to rename them, so you can tell which is which.&nbsp; This is especially useful when using Remoting with&nbsp;Enter-PSSession.&nbsp; The problem when using Enter-PSSession is that you have no access to the root ISE object (<span style=\"color: #ff6600\">$psise<\/span>) when remoting, so you should use another (local) tab and enter the following:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\"><span style=\"color: #ff6600\">&nbsp;&nbsp; $psise<\/span>.PowerShellTabs[0].DisplayName = &#8216;myRemoteMachine&#8217;<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\">Needless to say, if you want to rename the second tab, you&#8217;d use PowerShellTabs[1] &#8230; and so on<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\">To rename the current PowerShell tab, enter: <\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\"><span style=\"color: #ff6600\">&nbsp;&nbsp; $psise<\/span>.CurrentPowerShellTab.DisplayName = &#8216;PowerShellRocks&#8217;<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\">ref@ <\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\">Refaat Issa [MSFT]<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you have multiple PowerShell tabs open in the ISE, it may be handy to rename them, so you can tell which is which.&nbsp; This is especially useful when using Remoting with&nbsp;Enter-PSSession.&nbsp; The problem when using Enter-PSSession is that you have no access to the root ISE object ($psise) when remoting, so you should use [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2951","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>When you have multiple PowerShell tabs open in the ISE, it may be handy to rename them, so you can tell which is which.&nbsp; This is especially useful when using Remoting with&nbsp;Enter-PSSession.&nbsp; The problem when using Enter-PSSession is that you have no access to the root ISE object ($psise) when remoting, so you should use [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/2951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=2951"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/2951\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=2951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=2951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=2951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}