I'm trying to write a c# program which checks which user is logged on to a remote machine.
I have the machine name, the user name and - last but not least - administrative permission.
The only thing I've managed to find on the web is
if (Environment.UserName == "GeorgeWashington") isLoggedon = true;
...which doesn't seem to be what I'm looking for.
Help would be, quite naturally, greatly appreciated.