Solved

Logoff user from multiple computers

Posted on 2007-11-20
3
783 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

628 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