-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathSet-WindowTitle.ps1
More file actions
28 lines (25 loc) · 814 Bytes
/
Set-WindowTitle.ps1
File metadata and controls
28 lines (25 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function Set-WindowTitle {
<#
.NOTES
===========================================================================
Created by: Brian Graf
Date: July 7, 2018
Organization: VMware
Blog: www.brianjgraf.com
Twitter: @vBrianGraf
===========================================================================
.SYNOPSIS
Change the title of the PowerShell Window
.DESCRIPTION
I always have a million PowerShell windows up. I decided instead of using the RawUI string every time to update the title of my PS Session I'd just throw it in a function
.EXAMPLE
PS C:\> Set-WindowTitle -Title "Running SDDC Properties Query"
#>
[cmdletbinding()]
Param (
[Parameter(mandatory=$true)][string]$Title
)
process {
$host.ui.RawUI.WindowTitle = $Title
}
}