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


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"


Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.