Handling user sessions on Windows

How can we set time limits for user sessions on Windows?
Group Policies Editor has to help us to tune values in users’ session limits.


So, we launch this editor by running it within the Win+R “Run” program or with the command line:

PS C:\Windows\system32> gpedit.msc

Then we are following the branch in this way:

Local Computer Policy >  Computer Configuration > 
Administrative Templates >    Windows Components > 
Remote Desktop Services >      Remote Desktop Session Host > 
      Session Time Limits

There, we can edit and change whatever we need in the user session limitation tool.