< Back

Get-DefaultPropertySet

Mon Jan 13, 2020 6:33 pm

NAME Get-DefaultPropertySet



SYNOPSIS

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





SYNTAX

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





DESCRIPTION

The Get-DefaultPropertySet function gets 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:\\>Get-DefaultPropertySet -Object $DemoObject1



This example lists the properties included in $DemoObject1's Default Display

Property Set.









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



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



This example lists the properties included in both $DemoObject1 and

$DemoObject2's Default Display Property Set.











RELATED LINKS

https://github.com/Windos/DefaultPropertySetter