Do powershell Hashes have a max length?
Posted on 2011-10-07
I'm trying to pull data from multiple places and put it into one place. Doing so, I'm taking the inputs, spliting them, and then grabbing what I need into a single string. Then I'm exporting that string into a single line. The doc, in the end, will have multiple lines, but that's besides the point. I have everything working just fine and exporting all the data that I need except for one thing. When I open the final doc it has "..." at the end of the string (IE Key=Hello Value=Worl..."). Obviously the values are much larger (though I do not believe any will be more than 255 chars).
I'm wondering if using powershell hashes to compile data has a limit to what the value can be? It seems that anything which is more than 140 chars ends up with a "..." on the output value. Is there a method which will allow the output value to be larger within a hash?
Because this is giving me all the output I want, I'd prefer not to change how I'm grabbing the data, but rather just increase the size allowed by the powershells, hash, value. If possible.
Let me know. Thanks.