Windows Group Policy's

Group Policy Network Security Force Logoff When Logon Hours Expire

Windows Group Policy Name :- Group Policy - Network security: Force logoff when logon hours expire

Requirements :-

  • Work on any windows OS

Description :-

This security setting determines whether to disconnect users who are connected to the local computer outside their user account's valid logon hours. This setting affects the Server Message Block (SMB) component. When this policy is enabled, it causes client sessions with the SMB server to be forcibly disconnected when the client's logon hours expire. If this policy is disabled, an established client session is allowed to be maintained after the client's logon hours have expired. Default: Enabled.

Note :-

Notepad

This security setting behaves as an account policy. For domain accounts, there can be only one account policy. The account policy must be defined in the Default Domain Policy, and it is enforced by the domain controllers that make up the domain. A domain controller always pulls the account policy from the Default Domain Policy Group Policy object (GPO), even if there is a different account policy applied to the organizational unit that contains the domain controller. By default, workstations and servers that are joined to a domain (for example, member computers) also receive the same account policy for their local accounts. However, local account policies for member computers can be different from the domain account policy by defining an account policy for the organizational unit that contains the member computers. Kerberos settings are not applied to member computers.

Main Directory :-

Sub Directory :-

Policy Path :-

Local Computer Policy -> Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options

Policy Path :-

configure-group policy - Network security: Force logoff when logon hours expire

Policy Path :-

output-group policy - Network security: Force logoff when logon hours expire

Note :-

Notepad

After changing group policy options, you need to update group policy. If you do not update group policy then settings will not effect. To update it just simply type below command and also sample image is shown.

Command :-

gpupdate /force

output-update-group-policy
Notepad

In about command we used "/force" option, this will help up to update policy options forcefully.