I'm trying to set up a scheduled task on a pc that will run a
query and email the results to the user that is currently logged
into that pc. The network login name is the same as the email
address (login name is JonesB, email adress is
Is there a way to get the current user's login name?