I had never heard of qwinsta before, but when I run it, it looks like it outputs its data in fixed-width fields. If that is the case, consider using unpack instead of split.
is not quite working for me
Please describe how. Show the exact qwinsta output you get, inside code tags (Writeup Formatting Tips).