Iíve been thinking I could use query session to get the information using the command 'query session %username$' and dumping this to a file to ready line to as the output looks like this;-

SESSIONNAME USERNAME ID STATE TYPE DEVICE
>console User.Name 1 Active

I could have a function to read line to second, third and fourth cherishers to return 'Con'

I've created to code to output the file but having issues getting the code together to read line 2 characters 3, 4 and 5. Any ideas?