How can I check if a specific user is logged in on a specific computer on my active directory network? I am administrator in this network and would prefer to do it with powershell but I am open to other options.

I have created a powershell function based on this link. It shows some text of the psloggedon command that I still don't know how to remove and the function has a loot of room for improvement... But it works, so HTH somebody else.