Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to use the utility “Whoami” in windows
  • offloadanapp
    How to Offload Individual Apps on iPhone Mac
  • screenshot 2020 03 13 at 20.24.17
    How to view installed packages in Cygwin Windows
  • screenshot 2020 05 11 at 20.03.56
    How to remove printers from HP Utility Mac
  • Wyebot
    A comprehensive guide on Wyebot Wireless Intelligence Platform Reviews
  • Create a User and Custom Domain in Entra ID
    How to Create a User and Custom Domain in Entra ID AWS/Azure/OpenShift
  • BitLocker selfservice or helpdesk recovery
    Force BitLocker Recovery: Perform BitLocker Recovery via the Self-Service Portal and Helpdesk Network | Monitoring
  • Veeam SureBackup
    Ensuring Backup Integrity and Reliable Recovery with SureBackup Backup
  • Windows Hello with fake fingerprints
    Security researchers bypass Windows Hello with fake fingerprints with Raspberry Pi 4 Security | Vulnerability Scans and Assessment

How to use the utility “Whoami” in windows

Posted on 06/02/202007/10/2024 Christian By Christian No Comments on How to use the utility “Whoami” in windows
utility

In this article, we shall discuss hHow to use the utility “Whoami” in windows. Please see “OpenShift common Commands“, how to perform Pleasant User Group Permission and User Access, and how o Backup existing and new BitLocker Recovery Keys to Active Directory. The “Whoami’ command is a built-in console of Windows command and it displays user, group, and privileges information for the user who is currently logged on to the local system.

If used without parameters, whoami displays the current domain and user name, group, and privileges of the current user.

Also, see How to alter a DATABASE compatibility level, “How to run apps as an administrator on Windows 10 and Windows 11“, and Cybersecurity Tips to Secure Synology NAS against Ransomware.

Use the utility “Whoami” in windows

Here are the steps to display the user and group information for a specific user.
Search for “Run”. Type cmd.exe as shown below and press Enter

Whoami

Using the tool “whoami” without any further parameter will prompt only the username as shown below.

Windows

With the parameter /all

This will displays all information in the current access token. This includes the current user name, security identifiers (SID), privileges, and groups that the current user belongs to.

/upn: Display the user name in user principal name (UPN) format.
/fqdn: Display the user name in fully qualified domain name (FQDN) format.
/logonid: Display the logon ID of the current user.
/user: Display the current domain and user name and the security identifier (SID).
/groups: Display the user groups to which the current user belongs. This includes
- The Integrity Control level: Mandatory Label\Low
- Mandatory Level = Low. Mandatory Label\Medium
- Mandatory
Level = Medium/Standard. Mandatory Label\High 
- Mandatory Level = Elevated.
/fo: The output format. Valid values: 
- table Table format (default)
- list List format.
- csv Comma-separated value (CSV) format.
/all: Display all information in the current access token, including the current user name, security identifiers (SID), privileges,and groups that the current user belongs to
/?: Help
/nh: Specifies that the column header should not be displayed in the output. This is valid only for table and CSV formats.
/priv: Display the security privileges of the current user.

I hope you found this blog post on how to use the utility “Whoami” in windows helpful. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:SysInternal, Sysinternals Live Tools, Windows 10, Windows Server 2016, windows sysinternals tools

Post navigation

Previous Post: Determine the last boot time of a Windows Server
Next Post: Check if Windows Updates were installed

Related Posts

  • Install and report or install or shutdown with BitLocker
    BitLocker Windows Update Shutdown or Reboot option behavior Windows
  • TPM
    Clear TPM: How to enable or disable TPM in Windows Windows
  • How to Disable UAC with Group Policy and enable PIN in Windows Hello
    How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
  • How to Clear Search History on Bing Chat AI
    How to Clear Search History on Bing Chat AI Windows
  • What Happens if You Turn Off Your Computer During windows update
    What Happens if You Turn Off Your Computer During an Update Windows
  • Disable BitLocker
    Disable BitLocker: How to correctly disable MBAM-encrypted devices Windows

More Related Articles

Install and report or install or shutdown with BitLocker BitLocker Windows Update Shutdown or Reboot option behavior Windows
TPM Clear TPM: How to enable or disable TPM in Windows Windows
How to Disable UAC with Group Policy and enable PIN in Windows Hello How to Disable UAC with Group Policy and enable PIN in Windows Hello Windows
How to Clear Search History on Bing Chat AI How to Clear Search History on Bing Chat AI Windows
What Happens if You Turn Off Your Computer During windows update What Happens if You Turn Off Your Computer During an Update Windows
Disable BitLocker Disable BitLocker: How to correctly disable MBAM-encrypted devices Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • offloadanapp
    How to Offload Individual Apps on iPhone Mac
  • screenshot 2020 03 13 at 20.24.17
    How to view installed packages in Cygwin Windows
  • screenshot 2020 05 11 at 20.03.56
    How to remove printers from HP Utility Mac
  • Wyebot
    A comprehensive guide on Wyebot Wireless Intelligence Platform Reviews
  • Create a User and Custom Domain in Entra ID
    How to Create a User and Custom Domain in Entra ID AWS/Azure/OpenShift
  • BitLocker selfservice or helpdesk recovery
    Force BitLocker Recovery: Perform BitLocker Recovery via the Self-Service Portal and Helpdesk Network | Monitoring
  • Veeam SureBackup
    Ensuring Backup Integrity and Reliable Recovery with SureBackup Backup
  • Windows Hello with fake fingerprints
    Security researchers bypass Windows Hello with fake fingerprints with Raspberry Pi 4 Security | Vulnerability Scans and Assessment

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.