How to change the Title of the console using PowerShell command?

PowerShellMicrosoft TechnologiesSoftware & Coding

For various reasons, you need to change the title of the PowerShell console. Like the title to describe the script. For example, System Information or Service Information.

To change the PowerShell Console Title use the “WindowsTitle” property in RawUI. It is just a temporary change. When you close the console and open it again, the title will be set to the default.

$host.UI.RawUI.WindowTitle = "System Information"

Now the title of the PowerShell console is changed to “System Information”.

You can also supply variable value to this parameter.

$Title = "System Information"
$host.UI.RawUI.WindowTitle = $Title
Published on 23-Jan-2020 12:32:29