Powershell: Change the title of the powershell window from a script

Hi,

sometimes it would be nice to see the status of a script in the title of the powershell window.

This is quite simply. Use the $host object to set the title of your choice:

PS D:\> $host.ui.RawUI.WindowTitle = "My new title"

Michael

Leave a Reply