< Back
Write-ColorizedHost
Post
NAME Write-ColorizedHost
SYNOPSIS
Writes text to console with specified words highlighted in colors..
SYNTAX
Write-ColorizedHost [[-Text] <String>] [-Word <String[]>] [-Color {Black | DarkBlue | DarkGreen | DarkCyan |
DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White}]
[-DefaultColor {Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray |
Blue | Green | Cyan | Red | Magenta | Yellow | White}] [<CommonParameters>]
DESCRIPTION
Writes text to console with specified words highlighted in colors.
PARAMETERS
-Text <String>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Word <String[]>
Required? false
Position? named
Default value success
Accept pipeline input? false
Accept wildcard characters? false
-Color
Required? false
Position? named
Default value Green
Accept pipeline input? false
Accept wildcard characters? false
-DefaultColor
Required? false
Position? named
Default value White
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Write-ColorizedHost -Word "Success", "Warning", "Error" -Color Green, Yellow, Red -Text "This is some text.
The previous action was a success. Not an error or warning."
RELATED LINKS
SYNOPSIS
Writes text to console with specified words highlighted in colors..
SYNTAX
Write-ColorizedHost [[-Text] <String>] [-Word <String[]>] [-Color {Black | DarkBlue | DarkGreen | DarkCyan |
DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White}]
[-DefaultColor {Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta | DarkYellow | Gray | DarkGray |
Blue | Green | Cyan | Red | Magenta | Yellow | White}] [<CommonParameters>]
DESCRIPTION
Writes text to console with specified words highlighted in colors.
PARAMETERS
-Text <String>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Word <String[]>
Required? false
Position? named
Default value success
Accept pipeline input? false
Accept wildcard characters? false
-Color
Required? false
Position? named
Default value Green
Accept pipeline input? false
Accept wildcard characters? false
-DefaultColor
Required? false
Position? named
Default value White
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Write-ColorizedHost -Word "Success", "Warning", "Error" -Color Green, Yellow, Red -Text "This is some text.
The previous action was a success. Not an error or warning."
RELATED LINKS