Cmdlet
New-ConsoleLogo
Creates banner text drawn with a pixel font and a colour gradient.
Syntax
New-ConsoleLogo
[-Alignment <Left| Center| Right>]
[-EndColor <String>]
[-StartColor <String>]
[-Tagline <Object>]
[-Text] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Letters A-Z, digits and - . : ! / _ are drawn with half blocks (four rows tall) on modern and Consolas fonts, and with # in ASCII mode. Colours accept names, #hex or rgb().
Examples
Example 1
$logoOptions = @{
Text = 'DEPLOY'
Tagline = 'production · 14 servers'
StartColor = '#22d3ee'
EndColor = '#a78bfa'
}
New-ConsoleLogo @logoOptions | Show-ConsoleA banner with a tagline
Example 2
$logoOptions = @{
Text = 'Fleet'
Tagline = 'Inventory checks'
}
New-ConsoleLogo @logoOptions | Show-ConsolePrint a fleet heading and tagline
Example 3
Get-ConsoleDemo -Slug 'welcome-rich' | Select-Object -ExpandProperty SourceRead the gallery script to see New-ConsoleLogo in a complete example. Each lookup returns the script's source. Use the same slug with Show-ConsoleDemo to run it.
Parameters
- -Alignment HorizontalAlignment
- Alignment: Left, Center or Right.
- Possible values:
Left,Center,Right - -EndColor String
- Gradient end colour.
- -StartColor String
- Gradient start colour.
- -Tagline Object
- A muted tagline under the banner (markup allowed).
- -Text String
- The literal heading drawn with the selected banner font.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.