Write-WarningMessage
Writes a warning message to the console.
Syntax
Write-WarningMessage
[[-warning] <String>]
[<CommonParameters>]
Description
The Write-WarningMessage cmdlet writes a warning message to the console.
Examples
1: Write a warning message
PS C:\>Write-WarningMessage -Warning "This is a warning"
Writes a short message (warning) to the System Center Operations Manager Command Shell.
Parameters
-warning
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |