Automating the world one-liner at a time…
When you have multiple PowerShell tabs open in the ISE, it may be handy to rename them, so you can tell which is which. This is especially useful when using Remoting with Enter-PSSession. The problem when using Enter-PSSession is that you have no access to the root ISE object ($psise) when remoting, so you should use another (local) tab and enter the following:
$psise.PowerShellTabs.DisplayName = 'myRemoteMachine'
Needless to say, if you want to rename the second tab, you'd use PowerShellTabs ... and so on
To rename the current PowerShell tab, enter:
$psise.CurrentPowerShellTab.DisplayName = 'PowerShellRocks'
Refaat Issa [MSFT]
You can add a new tab with $psISE.PowerShellTabs.Add(). Is there any way to open a tab with admin rights?
You've probably already sorted this but anyone else needing an alternate context can open ISE with the "runas" command and change the user context that way. Works like a charm in the domain environment.