It can sometimes be useful to be able to see who is logged into a PC in your domain.
You can run the following command from command prompt:
See the link for more details: