Use Quser To View Which Accounts Are Logged In & Remoted In to a Computer

When restarting a Windows server or computer, you may receive a warning message that other users are still using the computer:

RestartWarning

So how can you find out who this “someone else” is?

Quser (query user) is a built-in Windows command line tool that is particularly useful when needing to identify active user sessions on a computer.  This feature exists in regular Windows versions as well as Windows Server.

From command prompt, simply type:

quser

quser

Quser will return the following information:

> Denotes the current session
USERNAME Logon name of the user
SESSIONNAME rdp = Remote desktop/terminal services login session
console = Direct login session
ID Session ID
STATE active = Active session
disc = Disconnected session (inactive)
IDLE TIME Minutes since last keystroke or mouse movement
LOGON TIME Date and time the user logged on
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: