Discovering User Identity in Windows Vista or Windows Server

By Using the WhoAmI utility in Windows Vista you information on who you are in relation to other elements of the system. This utility can be used to get user name and group information along with the respective security identifiers (SID), privileges, logon identifier (logon ID) for the current user (access token) on the local system. i.e. who is the current logged on user? If no switch is specified, tool displays the user name in NTLM format (domain\username).

Some options include

Parameter List:
/UPN Displays the user name in User Principal Name (UPN) format.

/FQDN Displays the user name in Fully Qualified Distinguished Name (FQDN) format.

/USER Displays information on the current user along with the security identifier (SID).

/GROUPS Displays group membership for current user, type of account, security identifiers (SID) and attributes.

/PRIV Displays security privileges of the current user.

/LOGONID Displays the logon ID of the current user.

/ALL Displays the current user name, groups belonged to along with the security identifiers (SID) and privileges for the current user access token.

/FO format Specifies the output format to be displayed.
Valid values are TABLE, LIST, CSV.
Column headings are not displayed with CSV
format. Default format is TABLE.

/NH Specifies that the column header should not be displayed in the output. This is valid only for TABLE and CSV \\formats.

/? Displays help message.

Examples:
WHOAMI
WHOAMI /UPN
WHOAMI /FQDN
WHOAMI /LOGONID
WHOAMI /USER
WHOAMI /USER /FO LIST
WHOAMI /USER /FO CSV
WHOAMI /GROUPS
WHOAMI /GROUPS /FO CSV /NH
WHOAMI /PRIV
WHOAMI /PRIV /FO TABLE
WHOAMI /USER /GROUPS
WHOAMI /USER /GROUPS /PRIV
WHOAMI /ALL
WHOAMI /ALL /FO LIST
WHOAMI /ALL /FO CSV /NH
WHOAMI /?

This command is also available on Windows Server as well.

For more information or support by phone for this command or Windows please call us at 410-838-5100 or email us at experts@expertsinunix.com
Skype: pts.support

 
discovering_user_identity_in_windows_vista.txt · Last modified: 2010/08/23 10:47 by admin
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki