< Back

Clear-DefaultPropertySet

Mon Jan 13, 2020 6:33 pm

NAME Clear-DefaultPropertySet



SYNOPSIS

Removes all Properties from the Default Display Property Set of an Object.





SYNTAX

Clear-DefaultPropertySet [-Object] <PSObject[]> [<CommonParameters>]





DESCRIPTION

The Clear-DefaultPropertySet function removes all 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



<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:\\>Clear-DefaultPropertySet -Object $DemoObject1



This command clears the properties from $DemoObject1's Default Display

Property Set.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$DemoObject1, $DemoObject2 | Clear-DefaultPropertySet



This command clears the properties from both $DemoObject1 and $DemoObject2's

Default Display Property Set.











RELATED LINKS

https://github.com/Windos/DefaultPropertySetter