A. The resource kit has a utility called WHOAMI.EXE. It displays the domain/workgroup and username. You can also press Ctrl+Alt+Del and the current logged on user will be shown.
Alternativly you could just display the %userdomain% and %username% variables, e.g.
C:\> echo %userdomain%\%username%
1 comment
Hide comments