How to prevent users access only during set Logon Hours?

I'm trying to prevent the users from having access to the Network during the backups, from 12am to 5am in the morning.

I restricted each user's Logon Hours from 12am to 5am:

 How to force users off the Network for the period set for the Logon Hours allowed?
However, if they are already logged on, they still have access to the Network.  

How do I force everyone off during the times I don't want any user to have access to our Network?
NJ-EWhiteAsked:
Who is Participating?
 
Paul MacDonaldConnect With a Mentor Director, Information SystemsCommented:
There is a Group Policy rule you can use to log users off when their valid logon hours expire.
1
 
NJ-EWhiteAuthor Commented:
Paul MacDonald,

Thanks, I found what I needed.  Although, I set the allowed logon ours for the users, I also had to enable the group policy to force logoff when logon hours expire.

Thanks again.
0
 
DonNetwork AdministratorCommented:
That setting will only disconnect them from network shares, it will not log them off. Also you need to accept Paul MacDonald's comment as the answer(if that's what you wish) not your own comment.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
NJ-EWhiteAuthor Commented:
Don,

If that's not the case then what will force the user's off after their allowing logon hours expire?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
"Enabling the group policy to force logoff when logon hours expire was the answer I needed."
That's exactly what my link points to.

If you found the answer independent and prior to my post, close this question however you like.  If my comment gave you, or helped you arrive at your solution, you should assign points accordingly.
0
 
DonNetwork AdministratorCommented:
Ok, I have exactly what you're looking for...It involves using scheduled tasks to force a logoff

https://blogs.technet.microsoft.com/askds/2010/08/24/forcing-afterhours-user-logoffs/
1
 
NJ-EWhiteAuthor Commented:
Thanks Don,

I'm going to try this tonight and let you know how it works out for me.
0
 
DonNetwork AdministratorCommented:
No problem, good luck
0
 
NJ-EWhiteAuthor Commented:
I've made a mistake with the typing in the Script area.  I've mad the change today.  I will let you know tomorrow how it works out.

Thanks again.
0
 
NJ-EWhiteAuthor Commented:
Don,

I've tried what was explained, but while I get the, Logoff in 15 minutes notification to popup, my computer isn't logging off.

I purposely left my computer logged in, but locked.  I did get the logoff popup notification, but it didn't' log off.
0
 
NJ-EWhiteAuthor Commented:
Corrections, it was set to only run once and that was back on 3/28/2018.

I've just changed it so that it runs everyday.  I will let you know what happened on tomorrow.
0
 
DonNetwork AdministratorCommented:
Hmmm.....

You can try shutdown.exe

with the arguments of "-L -F"  << no quotes
0
 
NJ-EWhiteAuthor Commented:
Hey Don,

I've tried it, and left my computer on, logged in, but locked over the weekend.

When I got in this morning, my computer was still locked, however when I unlocked it, I had the Shutting Down in 15 minutes displayed on my screen, but it didn't force me to log off.

I'm going to try the -L -F argument.  I will let you know what happened on tomorrow.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.