Home Dashboard Directory Help
Search

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


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 508091
Opened: 11/4/2009 12:52:11 AM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description

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.
Details
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.)
Sign in to post a workaround.