Skip to content

Select-Object return a property named * #2420

@iSazonov

Description

@iSazonov

Steps to reproduce

[pscustomobject]@{Thing="thing1"} | Select-Object -Property * -ExcludeProperty thing

Expected behavior

The cmdlet return empty pscustomobject (w/o properties).

Actual behavior

The cmdlet return:

 * 
 - 

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.0.10240.17113
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.42000
BuildVersion                   10.0.10011.16384
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions