Hi all, More batch script goodness. I'm using PSTools' psloggedon for this. In CMD, if I input 'psloggedon -l -x \\HOSTNAME' I get the following result...
Connecting to Registry of \\HOSTNAME...
Users logged on locally:
DOMAIN\USER_ONE
DOMAIN\USER_TWO
DOMAIN\USER_THREE
DOMAIN\USER_FOUR
Using FOR in a batch script, I would expect skipping the first 2 populated lines (using /F) and setting the delimiter as '\' should allow me to pipe just the usernames to the screen, however it