Ask Experts Questions for FREE Help !
Ask
    hardhatinc's Avatar
    hardhatinc Posts: 19, Reputation: 1
    New Member
     
    #1

    Apr 30, 2008, 09:30 AM
    Force log off on a domain
    How can I set up a group policy on a domain to log off a user at a certain time? I need my backups to run at 10, but I need all of the computers logged off at 9. I have set the log on hours, what else can I do?
    IT Helpp's Avatar
    IT Helpp Posts: 35, Reputation: 4
    Junior Member
     
    #2

    May 3, 2008, 11:02 AM
    Just for your information, if you would like to schedule a log off time, you can also create a TXT document with the following content. Name it logoff.bat and then create a Schedule Task to run it:
    C:\Windows\system32\shutdown.exe –l –f
    How To Schedule Tasks in Windows XP
    hardhatinc's Avatar
    hardhatinc Posts: 19, Reputation: 1
    New Member
     
    #3

    May 5, 2008, 06:10 AM
    I know about the script, but my boss was wanting me to implement a group policy on the DC that would log users off at a certain time. Right now, I have a script on the DC to restart all of the computers.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    May 5, 2008, 06:16 AM
    I know you can restrict logons to a certain time frame. I'm not sure, however, if when the time frame elapses, it will log the user off.
    retsoksirhc's Avatar
    retsoksirhc Posts: 912, Reputation: 71
    Senior Member
     
    #5

    May 5, 2008, 06:42 AM
    This would take 2 steps.

    First, set the hours the account is allowed to be logged in, under the user account in active directory. You can find it under the Logon Hours button.

    Then to enforce these hours, you have to set up group policy. It's under Computer Settings/Security Settings/Local Policies/Security Options/Network Security: Force Logoff When Logon Hours Expire
    hardhatinc's Avatar
    hardhatinc Posts: 19, Reputation: 1
    New Member
     
    #6

    May 5, 2008, 06:44 AM
    I tried that and it only disconnects them from network resources. It does not log them off the computer.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #7

    May 5, 2008, 06:50 AM
    Tried, which? My suggestion or Chris's?
    retsoksirhc's Avatar
    retsoksirhc Posts: 912, Reputation: 71
    Senior Member
     
    #8

    May 5, 2008, 06:50 AM
    Do you only need everyone logged off so that you can run the backups? If so, that will close all the open network handles, and all the files will be ready for backup.

    If you actually need the machines to log off, you could try ITHELPP's suggestion with a batch file, or you could try the winexit.scr method Microsoft suggests for logging off an idle user... just Google winexit.scr for more info on that.
    hardhatinc's Avatar
    hardhatinc Posts: 19, Reputation: 1
    New Member
     
    #9

    May 5, 2008, 06:54 AM
    Like I said before, I do have a .bat file on the server and scheduled for a daily task. It reboots all computers. I just wish there was a group policy that would log them off at a certain time.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Confederate air force/ Commemorative air force [ 5 Answers ]

Are Lefty Gardner and Lloyd Nolan still alive? If so where can I find good information on the start of the Confederate Air force on line. There is a lot of info on the new Commemorative Air force, but very little on the old.

Domain Name [ 2 Answers ]

How do I create a domain ?

Domain Name [ 3 Answers ]

There is this script running daily to send a file from one system to a PC on one domain. How do you configure the PC to receive this file? What configurations do I have to make on the PC to receive this file? I have shared a folder on a test PC but it doesn't receive the file..

How to sent massage PC to PC under the domain [ 1 Answers ]

How to sent massage one PC to another PC under the domain (client side) in a LAN?

Domain Name [ 1 Answers ]

If a company has the same name as my domain, can I be forced to shut it down?


View more questions Search