I know you can get the username of the person logged on by typing environ (username). I need a code to get the username's of all the accounts on the computer.

Can somebody help me as i need this code.

Thanks in advance chris1990