Converts Select-Object results to a property set
Converts Select-Object results to a named property set Named property sets can be requested from a property
EXAMPLE 1
Get-ChildItem |
Select-Object Name, LastWriteTime, LastModifiedTime, CreationTime |
ConvertTo-TypePropertySet -Name FileTimes |
Out-TypeData |
Add-TypeData
Get-ChildItem |
Select-Object filetimes
The output from Select-Object
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] |
true | named | true (ByValue) |
The name of the selection set to create
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] |
true | 1 | false |
ConvertTo-PropertySet -SelectedObject <Object> [-Name] <Object> [<CommonParameters>]