This is a handy new command line tool that now ships with Windows Vista.
You can use this tool to find out the name of the account currently logged in and it’s SID, along with the names of any security groups to which it is a member, with listing’s of privileges.
To use this tool you will NOT need to open the command prompt with elevated privileges.
- Click Start and type cmd
- Type whoami then click Enter
This will then display the name of the pc and the current logged on user, this is useful if you are logged in as a standard user, but running an elevated Command Prompt.
Need to know the user’s SID
· Type whoami /user then click Enter
To list account’s group memberships
· Type whoami /groups /fo list then click Enter
For a list of privileges for the logged-on account
· Type whoami /priv /fo list then click Enter
For a complete list of whoami commands
· Type whoami /? then click Enter
scottbelton@tiscali.co.uk