Powershell – How to add a Title to a powershell window

powershell

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?

Best Answer

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