text stringlengths 0 4.23k |
|---|
Creates and manages Event Trace Session and Performance logs and supports many functions of Performance Monitor from the command line. |
Syntax |
logman [create | query | start | stop | delete| update | import | export | /?] [options] |
Parameters |
Parameter |
Description |
logman create |
Creates a counter, trace, configuration data collector, or API. |
logman query |
Queries data collector properties. |
logman start | stop |
Starts or stops data collection. |
logman delete |
Deletes an existing data collector. |
logman update |
Updates the properties of an existing data collector. |
logman import | export |
Imports a data collector set from an XML file or export a data collector set to an XML file. |
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. |
<sessionname> |
<sessionID> |
<servername> |
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. |
<sessionID> |
<sessionname> |
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 |
lpq |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Displays the status of a print queue on a computer running Line printer Daemon (LPD). |
Syntax |
lpq -S <servername> -P <printername> [-l] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.