Add-Member doesn't work on Hashtables until they've been accessed. - by Joel Bennett

Status : 

  External<br /><br />
		This item may be valid but belongs to an external system out of the direct control of this product team.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 382818 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/18/2008 8:02:52 PM
Access Restriction Public


You can't Add-Member to a Hashtable until you've accessed a property of the table. 
Sign in to post a comment.
Posted by Joel 'Jaykul' Bennett on 3/5/2013 at 6:03 PM
This is fixed in PS3!
Posted by Microsoft Connect on 11/6/2009 at 1:08 PM
Your bug has not been fixed in PowerShell 2.0. However we have kept the bug active for next version