PowerTip: Change the PowerShell Console Title

Summary: Learn how to change the Windows PowerShell console title.

Hey, Scripting Guy! Question How can I change the title of the Windows PowerShell console?

Hey, Scripting Guy! Answer One way to do this is to use the WindowTitle property from $host.ui.rawui, as shown here.

$host.ui.RawUI.WindowTitle = “Changed Title”

1 comment

Comments are closed. Login to edit/delete your existing comments

  • Paulo Nascimento

    So much more intuitive than the “Title” DOS shell command… DOS command prompt please come back again, you have been forgiven… and yes we all known that we can create an alias for title as $host.ui.RawUI.WindowTitle….