Cách logoff user khác trong windows server 2022

Chuyển đến nội dung chính

Trình duyệt này không còn được hỗ trợ nữa.

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

Log off or Disconnect User Sessions

  • Bài viết
  • 03/22/2021
  • 2 phút để đọc

Trong bài viết này

MultiPoint Services users can log on and log off of their desktop sessions as they would with any Windows session. Users can also disconnect or suspend their session so that the MultiPoint Services station is not being used, but their session remains active in the MultiPoint Services system's computer memory.

In addition, administrative users can end a user's session if the user has stepped away from their MultiPoint Services session or has forgotten to log off of the system.

Logging off or disconnecting a session

The following table describes the different options that you or any user can use to log off, suspend, or end a session.

ActionEffect
Click Start, click Settings, click the user name (top-right corner), and then click Sign out. The session ends and the station is available for log on by any user.
Click Start, click Settings, click Power, and then click Disconnect. Your session is disconnected and your session is preserved in computer memory. The station becomes available for log on by the same user or a different user.
Click Start, click Settings, click the user name (top-right corner), and then click Lock The station is locked and your session is preserved in computer memory.

Suspending or ending a user's session

The following table describes the different options that you, as an administrative user, can use to disconnect or end a user's session.

ActionEffect
Suspend: In MultiPoint Manager, use the Stations tab to suspend the user's session. For more information, see the Suspend and Leave User Session Active topic. The user's session ends and is preserved in computer memory. The station becomes available for log on by the same user or a different user. The user can log on to the same station or another station and continue with their work.
End: In MultiPoint Manager, use the Stations tab to end the user's session. You can also end all user sessions on the Stations tab. For more information, see the End a User Session topic. The user's session ends and the station becomes available for log on by any user. The user's session no longer displays on the Stations tab, and it is not in computer memory.

See Also

Suspend and Leave User Session Active End a User Session Manage User Desktops Log Off User Sessions

Phản hồi

Gửi và xem ý kiến phản hồi dành cho

Chuyển đến nội dung chính

Trình duyệt này không còn được hỗ trợ nữa.

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

logoff

  • Bài viết
  • 07/29/2021
  • 2 phút để đọc

Trong bài viết này

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

ParameterDescription
<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

  • Command-Line Syntax Key

  • Remote Desktop Services (Terminal Services) Command Reference

Phản hồi

Gửi và xem ý kiến phản hồi dành cho