Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 531 Bytes

File metadata and controls

16 lines (10 loc) · 531 Bytes

Get-Content with OutVariable and ReadCount

Using Get-Content with OutVariable and ReadCount may produce an unexpected nested array in the result variable. Using or not using the switch Raw makes no difference.

The workaround is not using ReadCount together with OutVariable.

Scripts