How To Identify The Current User

Table of contents:

How To Identify The Current User
How To Identify The Current User

Video: How To Identify The Current User

Video: How To Identify The Current User
Video: Node Auth Tutorial (JWT) #17 - Checking the Current User 2024, April
Anonim

The task of determining the current user, i.e. of the user, through whose account the computer is logged in, in the Microsoft Windows operating system can be solved using the standard built-in utility Whoami.exe.

How to identify the current user
How to identify the current user

Instructions

Step 1

Call the main menu of the Microsoft Windows operating system by clicking the "Start" button to perform the operation of determining the current user and go to the "Run" item.

Step 2

Enter the value cmd in the "Open" field and confirm the execution of the command for launching the "Command Line" tool by clicking the OK button.

Step 3

Enter whoami / all / fo / nh in the command interpreter text box and confirm the definition command by pressing the Enter function key.

Step 4

Use the syntax whoami /? to get help information on possible command parameters: - / all - enter the name of the current user, his SID and access token; - / fo - select the display format. Valid formats are default Table, List and CSV (comma-separated, no breaks); - / nh - prohibits the display of the header row in Table and CSV formats.

Step 5

Use the following additional command parameters to define the necessary information regarding the current user: - / logonid - defining the security identifier; - / priv - defining the security level; - / groups - defining group membership, account type, SID; - / user - definition of the current user and his SID; - / fqdn - display the fully qualified domain name of the current user; - / upn - display account names as a principal user.

Step 6

Try going back to the main Start menu and typing "command line" in the search bar test box to determine the full group membership of the current user.

Step 7

Confirm the execution of the command by clicking the "Find" button and call the context menu of the found element cmd.exe by clicking the right mouse button.

Step 8

Specify Run as administrator and enter whoami / all in the Windows command interpreter text box.

Step 9

Confirm the execution of the command by pressing the function key Enter and compare the received data with those found earlier.

Recommended: