Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to use the utility “Whoami” in windows

Posted on 06/02/202017/08/2026 Christian By Christian No Comments on How to use the utility “Whoami” in windows
  1. Home
  2. Windows
  3. How to use the utility “Whoami” in windows
utility

In this article, we shall discuss how 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.

Command prompt displaying Windows user and group information, including user name, SID, and privileges.

Please, see Hacker Thinking in Ransomware Attacks: Why Backup Infrastructure Is the Real Target, How to Check and Reset Network Data Usage in Windows 11, and Disable and Enable USB Usage for Certain Users in Windows.

Parameters

/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.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • Data drive is locked by BitLocker and not OS drive Fastboot Option
    Fast Boot Options: Fix specific Drive issue with BitLocker [MBAM] Windows
  • Windows Server
    Migrate Roles and Features to Windows Server 2022 using WSMT Windows
  • reliablee
    How to use the Reliability Monitor in Windows Windows
  • Lets Encryp
    How to install Let’s Encrypt Certificates with IIS on a Windows Server Windows
  • Featured image Some Settings are managed by your organization
    How to Fix “Some Settings Are Managed by Your Organization” Error in Windows Update Windows
  • how to bypass windows admin log in password 2
    Disable or Enable Auto log on in Windows Windows

More Related Articles

SystoLOCK Passwordless Authentication Protect your Windows Devices with MFA with SystoLOCK Security | Vulnerability Scans and Assessment
BitLocker Protection off Update UEFI BIOS to fix issues BitLocker Protection off: Update UEFI/BIOS to fix issues Windows
LAPs on Windows Part of the OS How to configure Windows LAPS Windows
Slide1 Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
image 77 How to use the DigiCert certificate utility for Windows to create a CSR Windows
Convert PEM to PPK 1 Convert a PEM Key to a PPK Key on a Linux and Windows AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • banner 3
    How to Set Network Adapter Priority on Windows 11 Network | Monitoring
  • windows 10 s splash 100720578 large
    Open the location of a Program: How to search in Windows 10 to find a files or programs in File Explorer Windows
  • windows powershell thumbnail
    Unable to uninstall AppX? How to uninstall builtin programs using PowerShell in Windows 10 Scripts
  • Hadoop installation
    How to Install Hadoop on Linux Network | Monitoring
  • screenshot 2020 03 13 at 20.24.17
    How to install Cygwin packages from the command line Windows Server
  • dns records
    What are the different types of DNS Records Windows Server
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment Windows Server
  • edge7
    How to enable Adblocker on Microsoft Edge Windows

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.