Vista Squad Home

Vista Squad


The Usergroup for Windows Vista and the .NET Framework 3.0 and 3.5.

Welcome to Vista Squad Sign in | Join | Help
in
Home Blogs Forums Downloads

Who Am I

Last post 05-22-2007, 4:55 by Ray Booysen. 2 replies.
Sort Posts: Previous Next
  •  04-29-2007, 5:38 204

    Who Am I

     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.

     

    1. Click Start and type cmd
    2. 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
    Filed under:
  •  05-19-2007, 8:56 269 in reply to 204

    Re: Who Am I

    Thats really handy.  Such a simple yet effective tool.


    -james
    Ikanos Consulting
  •  05-22-2007, 4:55 278 in reply to 204

    Re: Who Am I

    Very effective.  I tried it a while back, didn't realise it had other options. Used to the Linux version. ;)

    Ray Booysen
    ray@vistasquad.co.uk
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems Telerik Ineta
Sponsored By Dot Net Solutions Ltd