I was logged into all 4 pcs at the same time.

I was thinking, that a useful byproduct of this code might be to report the names of all PCs that you are logged into concurrently.

Then put that into the logon script for IT staff, and provide a messagebox:

You are currently logged into remote-pcname, do you want to logoff that machine
_________________________
How to ask questions the smart way <-----------> Before you ask