Solved

Logoff user from multiple computers

Posted on 2007-11-20
3
777 Views
Last Modified: 2008-02-01
Hi There,
I am looking for the VBScript that for the user logoff immediately. The user is logging onto multiple system. I don't know what systems that user logon, but I need this user logoff from all the systems that user logging on, then allow user log back on to get new logon script.
Thank you very  much for your help.
2LL.
0
Comment
Question by:2LL
  • 2
3 Comments
 
LVL 26

Expert Comment

by:MidnightOne
ID: 20323940
Grab PSTOOLS from microsoft's web site (http://www.microsoft.com/technet/sysinternals/Utilities/PsTools.mspx)

copy to a  domain controller.

open a command prompt

CD to the directory where you put the Pstools folder

type psloggedon.exe UserName (e.g. JSmith)

Once the system is found with that user's logon run psshutdown from a command prompt:

psshutdown.exe -f -t 0 -o \\COMPUTERNAME

HTH

MidnightOne
0
 

Author Comment

by:2LL
ID: 20324011
MidnightOne.

I don't know what computers user are logging on. How can I check?
0
 
LVL 26

Accepted Solution

by:
MidnightOne earned 500 total points
ID: 20324042
That's what the psloogedon utility will find. It will sweep through the computers it finds in AD and check weach one for that user's name.

MidnightOne
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now