I am on my way. I'm new to PowerShell, and I tried everything I could find on the subject on the Internet. What I'm trying to do is print a hash table of arrays in a file without the dumb ellipsis appearing at the end of each array value. Below is my best attempt.
# Update output buffer size to prevent clipping in output window. if( $Host -and $Host.UI -and $Host.UI.RawUI ) { $rawUI = $Host.UI.RawUI $oldSize = $rawUI.BufferSize $typeName = $oldSize.GetType( ).FullName $newSize = New-Object $typeName (1000, $oldSize.Height) $rawUI.BufferSize = $newSize }
Now, after all this, I still get this as a result:
Date_Sent PSV_Types
--------- ---------
20091201 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091202 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091203 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091204 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091207 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091208 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091209 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091210 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091211 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091214 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
20091215 {31, DISTRIBUTIONS, AUDIT_TRAIL, BOOKS ...}
Someone wiser in powershell methods, please tell me what I am missing. How do I get rid of these bloody ellipses at the end and just write all the members of the array no matter how many there are? Should I just run some ghetto solution by building a large string buffer and outputting it to a file, or is there a better way to do this?
Thanks.