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
Test-DynamicParameterSwitchCheck
Executes Test-DynamicParameterSwitchCheck using the arguments shown.
PARAMETERS
-UserName
Specifies the User Name value.
Type: String[]
Parameter Sets: (All)
Aliases: EDIPI, DisplayName
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Enable
Specifies whether to enable the Enable option.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
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
System.Object
NOTES
ALIASES
None.
PLATFORM APPLICABILITY
Windows only. The platform-aware loader does not export this command on Linux or macOS.
POWERSHELL COMPATIBILITY
See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.
RELATED LINKS
https://docs.keldor.dev/powershell/keldor/Test-DynamicParameterSwitchCheck