Test-DynamicParameterSwitchCheck
SYNOPSIS
Non-functional. For reference.
SYNTAX
Test-DynamicParameterSwitchCheck [[-UserName] <String[]>] [-Enable] [<CommonParameters>]
DESCRIPTION
Shows how to create a function with dynamic parameters (Add and Modify) that only appear if the username parameter is populated and the Enable switch is added.
EXAMPLES
Example 1
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS
-Enable
{{ Fill Enable Description }}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-UserName
{{ Fill UserName Description }}
Type: String[]
Parameter Sets: (All)
Aliases: EDIPI, DisplayName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Author: Skyler Hart Created: 2022-09-11 01:28:57 Last Edit: 2022-09-11 01:41:04 Other: