-Property parameter on Format-* and *-Object requires Hashtable not be converted to PSObject - by Blake Coverett

Status : 


Sign in
to vote
ID 508091 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 11/4/2009 12:52:11 AM
Access Restriction Public


Where the -Property parameter accepts a Hashtable to create calculated property, there is a consistent bug across all cmdlets.   If the Hashtable has been adapted into a PSObject, and multiple properties are being specified an error is thrown.
Sign in to post a comment.
Posted by Blake Coverett on 9/23/2011 at 2:46 AM
This appears to be fixed in CTP1 of PowerShell 3.0. (Though can still be repro'd with "powershell -version 2.0" to load the old engine.)