external help file | Module Name | online version | schema |
---|---|---|---|
EasyAzureFunction-help.xml |
EasyAzureFunction |
2.0.0 |
Function lists parameters for a given command
Get-Parameter [-CommandName] <String[]> [-IncludeCommonParameters] [<CommonParameters>]
Function lists parameters for a given command
PS C:\> Get-Parameter Get-Location
It will return an array with all 5 parameters that commandlet Get-Location has.
PS C:\> Get-Parameter Get-Command | Format-Table
For majority of commands, it is better to format output as table, if no further processing is done.
PS C:\> Get-Command *-Host | Get-Parameter | Format-Table
Input for Get-Command can be also via pipeline.
PS C:\> Get-Command -Module Microsoft.* | Get-Parameter | ? Mandatory | ? ValidateSet | Format-Table
Lists all mandatory parameters with predefined set of values in all loaded Microsoft modules.
PS C:\> Get-Parameter -ScriptName LoremIpsum.ps1
Lists all parameters for a given script name.
Specify for which command it will output parameters.
Ultimately, this value(s) will be passed to Get-Command commandlet.
It can be also specified as script name (ending with .ps1), if that script has input parameters.
Type: String[]
Parameter Sets: (All)
Aliases: Name, ScriptName
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
By default, script will exclude common parameters (like -Verbose, -ErrorAction, etc.) even if they are supported by command. If you want them included, specify this switch.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).