logoff.exe

  • File Path: C:\Windows\system32\logoff.exe
  • Description: Session Logoff Utility

Hashes

Type Hash
MD5 DDB4F5DC12EC364DD325A2C63AB5F0DE
SHA1 CF3C725036A7442DE1D94F9AA70CFD524DA258DA
SHA256 4B5DF4CE25BCD9CF635CDED7333F5F53D23F57B2ADACA1DDF987C4B717F7FFB4
SHA384 2774812033F757100F644342494D5CCFD8A3427C0478413FEB8404E2304AD4E6886B90C7A7BFE5278951D9CA30086E4A
SHA512 C526B3DBF8DD03F03E0C2453F5E95ED0E9F5A54C00445D21234FBFBFFB24D8D4C864D2D45BBE4CC9CC55585586AB13978579A4F2482A86AC5E0C516C6E722A04
SSDEEP 384:OZYareI5jx+cnKJlcXeet3T5t1pZ8PoBZv5Tx8YRA8oYMhVMcrLoiW3kuW:O+aaI5UcnKvcXecVpZ8wBhRzT0voA
IMP 5DEE48EC7C50D677FA5BFE4D23399111
PESHA1 30D8575B561C179C44316E1949DF2D16471A506A
PE256 70FA0B5703EDD0003045006AA507506D6EE5E45385BF96CA0E607E1EC3F5F039

Runtime Data

Usage (stderr):

Invalid parameter(s)
Terminates a session.

LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V] [/VM]

  sessionname         The name of the session.
  sessionid           The ID of the session.
  /SERVER:servername  Specifies the Remote Desktop server containing the user
                      session to log off (default is current).
  /V                  Displays information about the actions performed.
  /VM                 Logs off a session on server or within virtual machine. The unique ID of the session needs to be specified.


Loaded Modules:

Path
C:\Windows\System32\KERNEL32.DLL
C:\Windows\System32\KERNELBASE.dll
C:\Windows\system32\logoff.exe
C:\Windows\SYSTEM32\ntdll.dll

Signature

  • Status: Signature verified.
  • Serial: 330000023241FB59996DCC4DFF000000000232
  • Thumbprint: FF82BC38E1DA5E596DF374C53E3617F7EDA36B06
  • Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  • Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

File Metadata

  • Original Filename: logoff.exe.mui
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 10.0.19041.1 (WinBuild.160101.0800)
  • Product Version: 10.0.19041.1
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.
  • Machine Type: 64-bit

File Scan

  • VirusTotal Detections: 0/74
  • VirusTotal Link: https://www.virustotal.com/gui/file/4b5df4ce25bcd9cf635cded7333f5f53d23f57b2adaca1ddf987c4b717f7ffb4/detection

Additional Info*

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


logoff

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

Logs off a user from a session on a Remote Desktop Session Host server and deletes the session.

Syntax

logoff [<sessionname> | <sessionID>] [/server:<servername>] [/v]

Parameters

Parameter Description
<sessionname> Specifies the name of the session. This must be an active session.
<sessionID> Specifies the numeric ID which identifies the session to the server.
/server:<servername> Specifies the Remote Desktop Session Host server that contains the session whose user you want to log off. If unspecified, the server on which you are currently active is used.
/v Displays information about the actions being performed.
/? Displays help at the command prompt.
Remarks
  • You can always log off yourself from the session to which you are currently logged on. You must, however, have Full Control permission to log off users from other sessions.

  • Logging off a user from a session without warning can result in loss of data at the user’s session. You should send a message to the user by using the msg command to warn the user before taking this action.

  • If <sessionID> or <sessionname> isn’t specified, logoff logs the user off from the current session.

  • After you log off a user, all processes end and the session is deleted from the server.

  • You can’t log off a user from the console session.

Examples

To log off a user from the current session, type:

logoff

To log off a user from a session by using the session’s ID, for example session 12, type:

logoff 12

To log off a user from a session by using the name of the session and server, for example session TERM04 on Server1, type:

logoff TERM04 /server:Server1

Additional References


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