Set the Console Window Title in PowerShell

Label the terminal window so multiple sessions are easy to tell apart.

WindowsTerminalpowershellproductivityLow risk
Run $Host.UI.RawUI.WindowTitle = "your title" to rename the window.

01Command

Command
$ $Host.UI.RawUI.WindowTitle = "cmdcv - PowerShell"

02What it does

The PowerShell host exposes raw console properties through $Host.UI.RawUI, and WindowTitle controls the title bar. Setting it in a profile or at the start of a long task makes multiple terminals distinguishable at a glance.

03Risk

RiskLow risk
RequirementsWindows 10/11 with PowerShell 5.1 or PowerShell 7+
!Warning: The property may be unavailable in some remote or minimal hosts; guard with a check if the script must be portable.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • PSHostRawUserInterface
    Microsoft Learn · vendor-doc · 2026-09-20
    Evidence: Exposes console properties including WindowTitle.

Last verified: 2026-09-20 · Category: System & Settings

06Related solutions