Link to home
Start Free TrialLog in
Avatar of 2LL
2LL

asked on

Logoff user from multiple computers

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.
Avatar of MidnightOne
MidnightOne
Flag of United States of America image

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
Avatar of 2LL
2LL

ASKER

MidnightOne.

I don't know what computers user are logging on. How can I check?
ASKER CERTIFIED SOLUTION
Avatar of MidnightOne
MidnightOne
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial