-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Select-Object return a property named * #2420
Copy link
Copy link
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
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.3Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues