Remote Query User

Apr 17, 2019·
Geng Chen
Geng Chen
· 1 min read
blog

A colleague asked if someone was remotely logged into a workstation. I found a simple way to check this from PowerShell using quser.

Run:

Enter-PSSession -ComputerName COMPUTERNAME
quser

You can then log off a session by ID:

logoff ID

Reference: quser docs

Geng Chen
Authors
Geng Chen (he/him)
PhD Student in Engineering
Geng Chen is a PhD student at Durham University. His research focuses on offshore wind energy and the environment, with interests in hydrodynamic and wave simulation, fluid-structure interaction, and data-driven engineering analysis.