Solved

Logoff user from multiple computers

Posted on 2007-11-20
3
781 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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