Solved

Logoff user from multiple computers

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Independent domain networks for setup 6 131
DHCP server 6 68
AD account Auto logoff 1 58
DNS/WINS in a domain 10 93
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.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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