I have many PowerShell windows open, with a command history specific for a task.

In the good old Batch file days I would use Title finance dpt or Title Email Admin. How can I accomplish this in PS?

PS C:\> $Host.UI.RawUI.WindowTitle = "New Window Title"

You can also throw this in your profile if it's something you want on each new PS window.

Check out the TechNet article Customizing the Windows PowerShell Console


If you want to set the title when you spawn a process:

$StartInfo = new-object System.Diagnostics.ProcessStartInfo
$StartInfo.FileName = "$pshome\powershell.exe"
$StartInfo.Arguments = "-NoExit -Command `$Host.UI.RawUI.WindowTitle=`'Your Title Here`'"

The simplest way of doing this is to use the following command in the PowerShell window:-

$host.ui.RawUI.WindowTitle = 'Some Name'

You can also use the following command in the Command prompt(cmd) or RunAs Dialog Box for getting the PowerShell Window with desired Title in the traditional CMD styled window.

cmd /k PowerShell -NoExit -Command "& {$host.ui.RawUI.WindowTitle = 'Powershell'}"

P.S: Its like traditional CMD with PowerShell features and Syntax Highlighting.


If its your own console you wnat to customise then the following article at how-to-geek has the detail you need. Quite a few steps but worth it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.