1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/windows/query.md
Lena c9775847b6
pages/*: use the imperative in descriptions (#12574)
* pages/*: use the imperative in descriptions

* go-fmt: put the description on one line
2024-04-18 09:34:00 +05:30

28 lines
592 B
Markdown

# query
> Display information about user sessions and process.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/query>.
- Display all user sessions:
`query session`
- Display the current user sessions on a remote computer:
`query session /server:{{hostname}}`
- Display logged in users:
`query user`
- Display all user sessions on a remote computer:
`query session /server:{{hostname}}`
- Display all running processes:
`query process`
- Display running processes by session or user name:
`query process {{session_name|user_name}}`