Windows
  • Introduction
  • General
    • Users
    • SAM database
  • Filesystem
    • NTFS
    • Finding files
  • Services
    • sc
  • Registry
    • reg
  • Registry Editor (GUI)
  • Access control & Permissions
    • icacls
  • User Account Control (UAC)
  • Powershell
    • Get-ChildItem
    • whoami
  • 🔍Active Directory (AD)
    • Domain Controller (DC)
    • Domain Service (AD DS)
      • Security groups
      • Organizational Units (OUs)
      • Security groups vs OUs
    • Authentication methods
      • Kerberos
      • NetNTLM
Powered by GitBook
On this page
  1. Powershell

whoami

PreviousGet-ChildItemNextDomain Controller (DC)

Last updated 3 days ago

View all available options

whoami /?

Examples

  1. View groups for the current user

whoami /groups
...
BUILTIN\Administrators                                        Alias            S-1-5-32-544   
...

The following output shows that the current user is an Administrator. However, the token settings will be kept to the standard user by default. Refer to the User Account Control (UAC) for more information.

notes