+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25
Windows Server 2008 R2 Thread, Forceably Logoff User in Technical; Hi folks, Every now and then we have the situation where a student has logged on somewhere in the school, ...
  1. #1
    Gongalong's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    897
    Thank Post
    813
    Thanked 19 Times in 17 Posts
    Rep Power
    10

    Question Forceably Logoff User

    Hi folks,

    Every now and then we have the situation where a student has logged on somewhere in the school, forgotten to logoff, and then needs to logon elsewhere. Hence we need to log them off from all PCs in the school, so they can then logon.

    Google shows a variety of methods of doing this, but they either apply to old versions of server, or are complex.

    I just wanted to check with the latest version of server whether there was yet an elegant way to do this, or whether it's still complex?

    (We use Ranger, just in case that has a tool for doing this)

    TIA

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,696
    Thank Post
    335
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Does it need to be done server side? There are plently of simple ways of doing it via script with WMI calls (or programs like EduRemote in my signature).

    Just sends a WMI command to force logoff. (Unless Ranger blocks that for any reason?)

    Steve

  3. Thanks to Steve21 from:

    Gongalong (1st February 2012)

  4. #3

    Join Date
    Mar 2007
    Posts
    1,769
    Thank Post
    80
    Thanked 291 Times in 222 Posts
    Rep Power
    86
    pslogged on from pstools will find the machine, psshutdown will log them off.

  5. Thanks to strawberry from:

    Gongalong (1st February 2012)

  6. #4
    Gongalong's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    897
    Thank Post
    813
    Thanked 19 Times in 17 Posts
    Rep Power
    10
    Ideally server side, as the problem is trying to hunt down which PC the student is logged into.

    I've tried EduRemote but get "Access denied" errors have tested it on one of the PCs here, albeit with an administrator that should have cross-domain rights.

  7. #5
    Gongalong's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    897
    Thank Post
    813
    Thanked 19 Times in 17 Posts
    Rep Power
    10
    Quote Originally Posted by strawberry View Post
    pslogged on from pstools will find the machine, psshutdown will log them off.
    psloggedon looks good, although is proving very slow in practise to identify where users are logged on.

  8. #6
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51
    Why do the students need to log out before they log in again?

  9. #7

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    The way I solved it was by using data collected by Lansweeper to check which computer they logged on to last. However, if you don't have any software currently tracking logons, it does make it quite tricky.

  10. #8


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,591
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    296
    would it not be possible to get a script that on logon added the pcname to the users description field. You can certainly add pc specs info taht way on pc bootup see no reason why the same logic cant be applied to users

  11. #9
    Gongalong's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    897
    Thank Post
    813
    Thanked 19 Times in 17 Posts
    Rep Power
    10
    Quote Originally Posted by p858snake View Post
    Why do the students need to log out before they log in again?
    Somewhere it is set so they can only be logged on once (Ranger possibly?).

    Quote Originally Posted by AngryTechnician View Post
    The way I solved it was by using data collected by Lansweeper to check which computer they logged on to last. However, if you don't have any software currently tracking logons, it does make it quite tricky.
    All we have over and above Windows Server is Ranger. I'm checking with RM whether it has any of this functionality.

  12. #10
    Gongalong's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    897
    Thank Post
    813
    Thanked 19 Times in 17 Posts
    Rep Power
    10
    Ranger's LAN Ranger Server > Network Explorer has a variety of views of logged on students, and can forceably log them off, as well as restart and shut down a PC. Hurrah!

  13. #11
    round2it's Avatar
    Join Date
    May 2009
    Location
    UK
    Posts
    999
    Thank Post
    198
    Thanked 144 Times in 102 Posts
    Rep Power
    36
    we have a startup script that creates a hidden file called logincookie.dat this has date and time machine name

    on log off it deletes the file

    if the file exists the system displays a message and says you are logged on to machine name then logs the user off

  14. #12

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    772
    Thank Post
    175
    Thanked 57 Times in 55 Posts
    Rep Power
    35
    Quote Originally Posted by strawberry View Post
    pslogged on from pstools will find the machine, psshutdown will log them off.
    I'm not sure if psshutdown is Windows 7 compatible :-$

  15. #13

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    Quote Originally Posted by rinzwind View Post
    Also was looking for a way to do this: try this small utility: LogoffStandby
    @rinzwind, are you the author of this software?

  16. #14

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    Quote Originally Posted by Davit2005 View Post
    I'm not sure if psshutdown is Windows 7 compatible :-$
    It is. Use it here all the time.

  17. #15

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    772
    Thank Post
    175
    Thanked 57 Times in 55 Posts
    Rep Power
    35
    I stand corrected :-)

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 14th July 2010, 09:20 AM
  2. User Account Random Logoff
    By cgiuk in forum Windows Server 2008
    Replies: 0
    Last Post: 23rd April 2010, 09:31 AM
  3. Replies: 4
    Last Post: 22nd September 2009, 12:15 PM
  4. Bulk user creation
    By Dos_Box in forum How do you do....it?
    Replies: 63
    Last Post: 13th November 2006, 07:02 PM
  5. New users
    By Dos_Box in forum General Chat
    Replies: 4
    Last Post: 3rd July 2005, 09:44 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •