1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 12:33:50 +02:00

query: add page (#6719)

This commit is contained in:
Sebastian Staudt 2021-10-12 08:32:22 +02:00 committed by GitHub
parent e599b2e73e
commit 9cec233eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
pages/windows/query.md Normal file
View file

@ -0,0 +1,28 @@
# query
> Displays information about user sessions and process.
> More information: <https://docs.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}}`