What is the Windows equivalent of Unix “whoami” command?
Since Windows 2000, the whoami command has been part of the standard command line (thanks to pk for clearing that up in comments!). You can do this: Open a command prompt and type “set” then hit enter. This shows active environment variables. Current logged on username is stored in the USERNAME env variable and your … Read more