"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

Windows XP and DOS

Display All Login Sessions and Associated Processes

SUMMARY: Show a list of user and system login sessions at the Windows XP DOS command prompt.

Even if you are the only user logged into your Windows XP machine, other sessions exist including ones for network and local services.

The logonsessions command can display detailed information about all such login sessions at the command prompt.

Simply download the file LogonSessions.zip, unzip the contained executable to your main Windows directory, and access session information with the following command at the DOS prompt:

logonsessions

Information on each session includes its ID, user name (if applicable), authorization package, logon type (such as service or interactive), login time and server, and DNS domain (if applicable).

By adding the -p parameter you can also view the filenames and PIDs (Process IDs) of each process opened by each logged in session:

logonsessions -p

* Download LogonSessions

Return to the Windows XP and DOS page.

Print this tip


Get the Newsletter

blog comments powered by Disqus

Thanks For Sharing!



Newest Tips:

Microsoft Word 2010
W0rds w8th Numbers Pass the S0ellchecker!
Google Gmail
Automatically Archive a Conversation you Respond to
Digital Photography
[MODIFIED] Did Someone Get in the Way While Taking a Photo?
Google Chrome
View Kittens and Pandas Everywhere!

Follow Us!

About MalekTips and the Author

The MalekTips website was created in 1998 by Andrew Malek of Envision Programming. The page's goal is to freely disperse computer-related tips, hints, and informative articles. Tips are organized to be easy to find, and are presented clearly, in easy-to-understand language. MalekTips also provides information and links to public-domain, open source, freeware, shareware, and commercial software available for download. < more >