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
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