quser.exe

  • File Path: C:\windows\system32\quser.exe
  • Description: Query User Utility

Hashes

Type Hash
MD5 E848C527736B577F535C6750401AF2D5
SHA1 CE8074AF0F22745FFC4396FC5597AA8E9B7ECDBA
SHA256 50557FD5AD11AFB07926D1FC5E84DE247183A0EBC184F5D02B142DB126D90FB8
SHA384 2B6F04023274EC2F64E04CA12E072DD1E8AAC77310345FF0242B57BA372C14DA29B6AEB54CE44F7FED70AF61EB8D9338
SHA512 2595ADC5C4D99371B31C362F27B4A6E3C64AE3E76F91E056C929DDC2A58B1268B144FF23E3E10F7E87EE951060BDF169BA50A7DBA865B968878D8699434D6E70
SSDEEP 384:HT/CNRx9/8RpW/Vt4SeLYV0osV7k1++EQ55QbbCJY7kkChGZ3Svu+ANyuoy07eOl:z/Ch9/oCVKpcXejqcbCJYqkuu+AJZO28

Signature

  • Status: The file C:\windows\system32\quser.exe is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170
  • Serial: ``
  • Thumbprint: ``
  • Issuer:
  • Subject:

File Metadata

  • Original Filename: quser.exe.mui
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 6.3.9600.16384 (winblue_rtm.130821-1623)
  • Product Version: 6.3.9600.16384
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.

Possible Misuse

The following table contains possible examples of quser.exe being misused. While quser.exe is not inherently malicious, its legitimate functionality can be abused for malicious purposes.

Source Source File Example License
sigma proc_creation_win_local_system_owner_account_discovery.yml - '\quser.exe' DRL 1.0
sigma proc_creation_win_multiple_suspicious_cli.yml - quser.exe DRL 1.0
sigma proc_creation_win_webshell_detection.yml - '\quser.exe' DRL 1.0
atomic-red-team T1033.md quser /SERVER:”#{computer_name}” MIT License. © 2018 Red Canary
atomic-red-team T1033.md quser MIT License. © 2018 Red Canary

Additional Info*

*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.


quser

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Displays information about user sessions on a Remote Desktop Session Host server. You can use this command to find out if a specific user is logged on to a specific Remote Desktop Session Host server. This command returns the following information:

  • Name of the user

  • Name of the session on the Remote Desktop Session Host server

  • Session ID

  • State of the session (active or disconnected)

  • Idle time (the number of minutes since the last keystroke or mouse movement at the session)

  • Date and time the user logged on

[!NOTE] This command is the same as the query user command. To find out what’s new in the latest version, see What’s New in Remote Desktop Services in Windows Server.

Syntax

quser [<username> | <sessionname> | <sessionID>] [/server:<servername>]

Parameters

Parameter Description
<username> Specifies the logon name of the user that you want to query.
<sessionname> Specifies the name of the session that you want to query.
<sessionID> Specifies the ID of the session that you want to query.
/server:<servername> Specifies the Remote Desktop Session Host server that you want to query. Otherwise, the current Remote Desktop Session Host server is used. This parameter is only required if you’re using this command from a remote server.
/? Displays help at the command prompt.
Remarks
  • To use this command, you must have Full Control permission or special access permission.

  • If you don’t specify a user using the <username>, <sessionname>, or sessionID parameters, a list of all users who are logged on to the server is returned. Alternatively, you can also use the query session command to display a list of all sessions on a server.

  • When quser returns information, a greater than (>) symbol is displayed before the current session.

Examples

To display information about all users logged on the system, type:

quser

To display information about the user USER1 on server Server1, type:

quser USER1 /server:Server1

Additional References


MIT License. Copyright (c) 2020-2021 Strontic.