Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Enforce user logoff when time restrictions apply

08 Sep 2013   #1
Nick2010

Windows 7 Ultimate SP1 x64
 
 
Enforce user logoff when time restrictions apply

Hi..

Due to an ongoing issue with Windows Live Family Safety time limits not working (for many people), I have been using the net user command to set time restrictions for my kids to logon. It works really well except that it doesn't log them off automatically or even prompt them to logoff when their time restrictions come into effect.

Does anyone know if this is possible to do and if it is, how to do it please?

Thanks.


My System SpecsSystem Spec
.
08 Sep 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

Are they using Windows 7 Pro or higher? If so, then we can look around for a Group Policy solution. Or maybe just a scheduled task using the shutdown -l command.
My System SpecsSystem Spec
08 Sep 2013   #3
Nick2010

Windows 7 Ultimate SP1 x64
 
 

Thanks for the reply.

It's Windows 7 Ultimate.

I found a gp setting for:
Microsoft network server: Disconnect clients when logon hours expire

It was already enabled (default).

Not sure where else to look.

When the Windows Live Family Safety time limits were working, users would get a popup telling them they would be logged off in x amount of minutes and to save any work before logging users off. If I could get something similar through a built-in control/command that would be excellent.

I'll look into the scheduled task suggestion but as I set various logon/logoff times depending on whether it's a school day, weekend etc, it may get a little complicated.
My System SpecsSystem Spec
.

08 Sep 2013   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

Bummer, I did not know that the log off switch for the shutdown program does not accept a time delay switch. Now that I've tested, I would suggest just restarting the computer via a scheduled task using the shutdown command with a delay in a batch file:
Code:
shutdown /r /t 600
The current user should see this:
Enforce user logoff when time restrictions apply-restart-delay.png
(without the command prompt window)

This does nothing to prevent the child from cancelling the shutdown (shutdown /a) or from waiting until the computer has restarted and then logging back on again. If you find that they are not following your wishes, then post back and we can take more draconian steps.


My System SpecsSystem Spec
08 Sep 2013   #5
andrew129260

Windows 10 Pro
 
 

I would like to know why windows live family safety stopped working. What have you tried to fix it?
My System SpecsSystem Spec
12 Sep 2013   #6
Nick2010

Windows 7 Ultimate SP1 x64
 
 

Quote   Quote: Originally Posted by andrew129260 View Post
I would like to know why windows live family safety stopped working. What have you tried to fix it?
I've no idea why the time limits feature is no longer working but it's an issue affecting many people.

MS have acknowledged the problem and have been working on it for a number of months but they haven't provided any indication of when it will be resolved.

I've tried reinstalling the the Family Safety filter and on one computer where it is installed, I've even performed a fresh installation of Windows 7 but it didn't fix the problem.

Some users are not affected so it's frustrating for those who are having the problems.
My System SpecsSystem Spec
12 Sep 2013   #7
Nick2010

Windows 7 Ultimate SP1 x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
Bummer, I did not know that the log off switch for the shutdown program does not accept a time delay switch. Now that I've tested, I would suggest just restarting the computer via a scheduled task using the shutdown command with a delay in a batch file:
Code:
shutdown /r /t 600
The current user should see this:
Attachment 285199
(without the command prompt window)

This does nothing to prevent the child from cancelling the shutdown (shutdown /a) or from waiting until the computer has restarted and then logging back on again. If you find that they are not following your wishes, then post back and we can take more draconian steps.
Thanks for the suggestion.

It's a shame the /l switch doesn't support time as that would go a long way to resolve things. I may try your suggestion along with a batch file but I've a feeling it could get a little complicated with different times for different days.
My System SpecsSystem Spec
12 Sep 2013   #8
UsernameIssues

W7 Pro SP1 64bit
 
 

You would only need one batch file and two scheduled tasks (school night and weekend):

Enforce user logoff when time restrictions apply-st.png


My System SpecsSystem Spec
12 Sep 2013   #9
andrew129260

Windows 10 Pro
 
 

Sometimes security software can hamper windows from working correctly. What security software do you use?
My System SpecsSystem Spec
12 Sep 2013   #10
Nick2010

Windows 7 Ultimate SP1 x64
 
 

Quote   Quote: Originally Posted by andrew129260 View Post
Sometimes security software can hamper windows from working correctly. What security software do you use?
ESET Smart Security
Malwarebytes Anti-Malware (run on demand)

Have tried Safe Mode with Networking to see if the Family Safety time limits work then but unfortunately, they don't.
My System SpecsSystem Spec
Reply

 Enforce user logoff when time restrictions apply




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Switch User then logoff, back to ctrl-alt-del login not previous user
On windows 7 professional 64-bit sp1, if a current user is screen locked, the lock screen indicates the current user name and account is logged on and the computer is locked. I am using Classic Logon in group policy, and under local policy-security options-interactive logon i have it set to...
General Discussion
Forcing user logoff/switch user with Remote Desktop
Here's my issue, I would like to RDP to a Windows 7 laptop. Even with Administrative privledges, it will tell me "Waiting for user to respond". I would like to either switch users via RDP, or force them to log off without prompting. Server is SBS 2008. I already have "Set Rules for remote...
Network & Sharing
How to Enforce Static IP address for all user accounts including guest
On my computer I need to have a guest account. The problem is that other computers on this network connected to the internet via my computer so my computer needs to have static IP address of 192.168.0.1 but when Guest account is logged in my system forgets the static IP address I have set in my...
Network & Sharing
User account control - restrictions
I have just installed & 32ibt Home Premium on an old Vista machine that I could not rectify the mess it was in. The problem is that my friends children accessed iTunes, free games, P2P stuff / sites. some unsavoury stuff from their friends phones etc and heaven knows what else and she is sick...
System Security
Standard User Account Restrictions
I want to stop my son from accessing 'my docs'. He has a basic account and I am administrator. How do I do this? Thanks.
General Discussion
Standard User Restrictions
I want to setup some type of parental control that when a user wants to install software they need to type in a password. How do i set this up? thanks in advance Maciek
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:57.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App