HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

logoff — Terminate a login session. More information: <https://learn.microsoft.com/windows-server/administrat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandloginterminatecliinformationsessionmorelogoff
windows

Problem

How to use the logoff command: Terminate a login session. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/logoff>.

Solution

logoff — Terminate a login session. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/logoff>.

Terminate the current session:
logoff


Terminate a session by its name or ID:
logoff {{session_name|session_id}}


Terminate a session on a specific server connected through RDP:
logoff {{session_name|session_id}} /server:{{servername}}

Code Snippets

Terminate the current session

logoff

Terminate a session by its name or ID

logoff {{session_name|session_id}}

Terminate a session on a specific server connected through RDP

logoff {{session_name|session_id}} /server:{{servername}}

Context

tldr-pages: windows/logoff

Revisions (0)

No revisions yet.