How to get the current logged in username

R

rich

Hello,

I am trying to find out how to get the username of the user currently logged
in on a computer. The user can be logged into a Windows/AD domain or logged
in locally. I just need his username.

Can anyone help me or point me to a simple solutio?

TIA,

Richard
 
Top