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-EWhiteIT CoordinatorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
There is a Group Policy rule you can use to log users off when their valid logon hours expire.
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NJ-EWhiteIT CoordinatorAuthor 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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

NJ-EWhiteIT CoordinatorAuthor 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-EWhiteIT CoordinatorAuthor 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-EWhiteIT CoordinatorAuthor 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-EWhiteIT CoordinatorAuthor 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-EWhiteIT CoordinatorAuthor 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-EWhiteIT CoordinatorAuthor 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.