How do you find the current user in a Windows environment?
You can use the username variable: %USERNAME%
Just use this command in command prompt
C:\> whoami
Username:
echo %USERNAME%
Domainname:
echo %USERDOMAIN%
You can get a complete list of environment variables by running the command set
from the command prompt.