The whoami command is found on both *NIX and Windows systems. On Windows it supports a couple of useful flags:
/all
— return detailed user information/groups
— return the current user’s groups/privs
— return information about current user privileges