Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Tried using this code in CMD as Admin in English language, but it's not restricting anything and can log in normally.
net user wereh /time:Monday,00:00-01:00;Monday-Friday,16:00-01:00;Saturday,00:00-00:00;Sunday,00:00-00:00
Result at CMD:
C:\Windows\system32>net user wereh /time:Monday,00:00-01:00;Monday-Friday,16:00-01:00;Saturday,00:00-00:00;Sunday,00:00-00:00
The command completed successfully.
C:\Windows\system32>net user wereh
User name wereh
Full Name raphael colombo
Comment
User's comment
Country/region code 000 (System Default)
Account active Yes
Account expires Never
Password last set 7/1/2021 21:57:22
Password expires Never
Password changeable 7/1/2021 21:57:22
Password required Yes
User may change password Yes
Workstations allowed All
Logon script
User profile
Home directory
Last logon Never
Logon hours allowed Sunday 00:00:00 - Monday 01:00:00
Monday 16:00:00 - Tuesday 01:00:00
Tuesday 16:00:00 - Wednesday 01:00:00
Wednesday 16:00:00 - Thursday 01:00:00
Thursday 16:00:00 - Friday 01:00:00
Friday 16:00:00 - Sunday 00:00:00
Local Group Memberships *Usuários
Global Group memberships *None
The command completed successfully.
Kindly go through the following article:
How to Restrict or set Time Limit for User Account in Windows 11/10