Skip to content

Remove CommonParameter

dscbot edited this page Feb 13, 2024 · 2 revisions

Remove-CommonParameter

SYNOPSIS

Removes common parameters from a hashtable.

SYNTAX

Remove-CommonParameter [-Hashtable] <Hashtable> [<CommonParameters>]

DESCRIPTION

This function serves the purpose of removing common parameters and option common parameters from a parameter hashtable.

EXAMPLES

EXAMPLE 1

Remove-CommonParameter -Hashtable $PSBoundParameters

Returns a new hashtable without the common and optional common parameters.

PARAMETERS

-Hashtable

The parameter hashtable that should be pruned.

Type: Hashtable
Parameter Sets: (All)
Aliases:

Required: True
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

System.Collections.Hashtable

NOTES

RELATED LINKS

Clone this wiki locally