Get-Greeting¶
SYNOPSIS¶
Returns a greeting message.
SYNTAX¶
__AllParameterSets¶
Get-Greeting [[-TimeOfDay] <string>] [[-Name] <string>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Returns a simple greeting message for the specified time of day. Optionally includes the user's name in the greeting.
EXAMPLES¶
EXAMPLE 1¶
Get-Greeting -TimeOfDay 'Morning'
Returns "Good Morning!" to the user.
EXAMPLE 2¶
Get-Greeting -TimeOfDay 'Evening'
Returns "Good Evening!" to the user.
EXAMPLE 3¶
Get-Greeting -TimeOfDay 'Morning' -Name 'Alice'
Returns "Good Morning, Alice!" to the user.
PARAMETERS¶
-Name¶
Optional name to include in the greeting.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-TimeOfDay¶
The time of day for the greeting.
Type: System.String
DefaultValue: Morning
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.String¶
{{ Fill in the Description }}