Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


October 30, 2008

Disconnecting Local and Remote Users from a Vista or XP System


RSS
View this exclusive article with VIP access -- click here to join |
See More Security Articles Here | Reprints | Or sign up for our VIP Monthly Pass!

Q: How can I log off users that are connected to my Windows Vista or Windows XP machine locally or remotely?

A: You can use the Windows Task Manager to forcibly disconnect locally or remotely connected users. To access the Task Manager, press CTRL+SHIFT+ESC or right-click the taskbar and select Task Manager. Then select the Task Manager’s Users tab to see all the users that are connected locally or remotely to your machine. Figure 1 shows a XP machine's Users tab. Remotely connected users have a machine name (e.g., JAN-PC for user Joe in Figure 1) in the Client Name column. This column is empty for locally connected users.

Forcibly disconnecting a local or remote user requires administrative privileges. If you don't have sufficient privileges, the Logoff and Disconnect buttons will be grayed out in the Task Manager. In XP, you can use the RunAs utility to switch to the security context of an Administrator account. To easily elevate your privileges in Vista, click the Task Manager’s Process tab, and then click the Show processes from all users button. Doing so will open a User Account Control (UAC) elevation prompt for the Task Manager. After you've approved the elevation or provided Administrator-level credentials, UAC will change the Task Manager to the security context of an Administrator account.

Once you have sufficient privileges, you can use the Task Manager’s Users tab to disconnect or log off a user. To do so, select the user and click the Logoff or Disconnect buttons. After this action has completed successfully, Task Manager will no longer show the selected user because he or she has been logged off or disconnected.

To log off or disconnect a user from the command prompt, use the logoff.exe command-line utility. To use this tool, you must know the session ID of the user whose session you want to disconnect or log off. You can find the session ID in the ID column of the Task Manager’s Users tab. However, keep in mind that when you forcibly disconnect a user, the user might lose data, so please use remote logoff with extreme care.

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
No Jobs, No Excitement at Apple's Last Macworld Keynote

Apple CEO Steve Jobs made the right move in skipping out on his company's last appearance at Macworld: In a Tuesday keynote address at the conference, Apple had no interesting new products to sell, opting instead to spend mind-numbing amounts of time on ...

Where is Microsoft NetMeeting in Windows XP?

...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Security Summit

How IE7 & The New Extended Validation SSL Certificates Impact Your Site

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing