We collected information about Restricting Logon Hours for you. Follow the liks to find out everything about Restricting Logon Hours.
https://www.top-password.com/blog/restrict-logon-hours-for-windows-account/
Follow the steps outlined below to easily limit the user’s logon hours: Go to Start menu. Go to Run and Type cmd, press Enter to open a Command Prompt window. Enter the appropriate net user command for the user(s) you wish to restrict access for. Example 1: Limits the user john to logon Monday- Friday between 8am and 5pm:
https://www.yourdigitalmind.com/tutorials/how-to-restrict-logon-hours-in-active-directory/
Right click the user account you wish to configure, then select the option ‘Properties’. From the Properties dialog box, select ‘Logon Hours’ which is located just below the user logon name fields. A window will appear that will show the permitted or denied hours. Permitted is Blue and Denied is White.
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-force-logoff-when-logon-hours-expire
Set Network security: Force logoff when logon hours expire to Enabled. SMB sessions will be terminated on member servers when a user's logon time expires, and the user will be unable to log on to the system until their next scheduled access time begins. Location. Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options
https://www.manageengine.com/products/active-directory-audit/kb/how-to/how-to-set-logon-hours-in-active-directory.html
Logon hours restriction is done by editing a user's account in the following way: Open the user object whose account you want to restrict logon hours for. Select account tab and put a check against the Logon hours box. Click Logon hours button. Click Logon hours button. In the next window, select the time that you want to restrict or allow them to logon.
https://trailhead.salesforce.com/en/content/learn/projects/protect-your-data-in-salesforce/restrict-login-hours-and-ip-ranges
Restrict Login Hours on the Support Profile. Click the Setup gear and select Setup. Enter Profiles in the Quick Find box, and select Profiles. Click Custom: Support Profile. Under Login Hours click Edit and set up the schedule. Note: Ensure the listed time is Pacific Daylight Time (PDT).
https://www.rebeladmin.com/2014/06/use-of-group-policies-to-control-log-on-hours-to-the-network/
In new window select the account tab. Then Click on check box in front “Logon Hours” and click on Logon Hours button. In next window I selected Sunday and restrict the logins for entire day. Then Click “Ok” twice in open windows to apply the changes. Now we have the restrictions in place.
https://www.windowscentral.com/how-configure-time-limits-local-account-windows-10
Here's an example of the command setting restrictions from Monday to Wednesday from 9 am to 4 pm, and on Thursday from 11 am to 8 pm: net user WCUser /times:M-W,9:00-16:00;T,11:00-20:00
https://techcommunity.microsoft.com/t5/microsoft-teams/restricting-access-to-office-365-microsoft-teams-after-defined/td-p/819363
The only way to restrict logon hours is when authentication happens on-premises, so you need either PTA or AD FS. But that will of course apply to all apps, not just Teams. An alternative is to schedule a PowerShell script that periodically disables/reenables the account and revokes tokens. Again, applies to all apps.
Searching for Restricting Logon Hours?
You can just click the links above. The info is collected for you.