It is always important for any IT helpdesk person to know the current logged-on user on a remote machine within a network. There are many softwares and tools available for purchase to do the same. But for smaller organizations, if they do not want to pay for such softwares they can write a script in VB or Javascript. The below script is written in VB.