< Back
Remove-DefaultPropertySetProperty
Post
NAME Remove-DefaultPropertySetProperty
SYNOPSIS
Removes Properties from the Default Display Property Set of an Object.
SYNTAX
Remove-DefaultPropertySetProperty [-Object] <PSObject[]> [-Property] <String[]> [<CommonParameters>]
DESCRIPTION
The Remove-DefaultPropertySetProperty function removes Properties from the
Default Display Property Set of a PSCustomObject or collection of PSCustomObjects.
PARAMETERS
-Object <PSObject[]>
PSCustomObject(s) with an existing Default Display Property Set.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Property <String[]>
The name of the properties to be removed from the Default Display Property Set.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-DefaultPropertySetProperty -Object $DemoObject1 -Property 'Name', 'Date'
This command removes the properties 'Name' and 'Date' from $DemoObject1's Default
Display Property Set.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$DemoObject1, $DemoObject2 | Remove-DefaultPropertySetProperty -Property 'Date'
This command takes two objects as input from the pipeline and removes the property
'Date' from both of their Default Display Property Sets.
RELATED LINKS
https://github.com/Windos/DefaultPropertySetter
SYNOPSIS
Removes Properties from the Default Display Property Set of an Object.
SYNTAX
Remove-DefaultPropertySetProperty [-Object] <PSObject[]> [-Property] <String[]> [<CommonParameters>]
DESCRIPTION
The Remove-DefaultPropertySetProperty function removes Properties from the
Default Display Property Set of a PSCustomObject or collection of PSCustomObjects.
PARAMETERS
-Object <PSObject[]>
PSCustomObject(s) with an existing Default Display Property Set.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Property <String[]>
The name of the properties to be removed from the Default Display Property Set.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-DefaultPropertySetProperty -Object $DemoObject1 -Property 'Name', 'Date'
This command removes the properties 'Name' and 'Date' from $DemoObject1's Default
Display Property Set.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>$DemoObject1, $DemoObject2 | Remove-DefaultPropertySetProperty -Property 'Date'
This command takes two objects as input from the pipeline and removes the property
'Date' from both of their Default Display Property Sets.
RELATED LINKS
https://github.com/Windos/DefaultPropertySetter