{"id":66,"date":"2012-01-11T15:37:01","date_gmt":"2012-01-11T15:37:01","guid":{"rendered":"http:\/\/www.top-password.com\/blog\/?p=66"},"modified":"2023-01-03T00:49:05","modified_gmt":"2023-01-03T00:49:05","slug":"restrict-logon-hours-for-windows-account","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/restrict-logon-hours-for-windows-account\/","title":{"rendered":"Restrict Logon Hours for Any Windows Account"},"content":{"rendered":"<p>One of my friends complained that his child spends too much time on his computer. He was very worried for his kid&#8217;s health. He tried to talk with the child but you know how stubborn they are. It was almost impossible to convince a six-year-old kid that spending too many hours in front of the computer can have a bad influence upon his health condition. I am a person who sustains children should learn how to use computers but I am against excessive use.<\/p>\n<p>Regarding my friend&#8217;s problem, I advised him to try software applications that restrict access to computer for a defined time interval. He was reticent about this idea asking me if there was a costless solution. He didn&#8217;t want to use software trying to avoid his child getting suspicious. He just wanted a trick to restrict access in Windows without additional software and at no cost.<\/p>\n<p>I immediately thought that the <strong>net user<\/strong> command would be perfect for this issue.\u00a0Follow the steps outlined below to easily limit the user&#8217;s logon hours:<\/p>\n<ol>\n<li>Open an elevated Command Prompt.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/12\/open-terminal-admin.png\" alt=\"\" width=\"424\" height=\"357\" class=\"alignnone size-full wp-image-19278\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/12\/open-terminal-admin.png 424w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2022\/12\/open-terminal-admin-300x253.png 300w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/>\n<\/li>\n<li>Enter the appropriate <strong>net user \/time <\/strong> command for the user(s) you wish to restrict access for.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2012\/01\/restrict-account-logon-hours.png\" alt=\"\" width=\"502\" height=\"210\" class=\"alignnone size-full wp-image-19330\" srcset=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2012\/01\/restrict-account-logon-hours.png 502w, https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2012\/01\/restrict-account-logon-hours-300x125.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/>\n<\/li>\n<\/ol>\n<p><strong>Example 1:<\/strong><br \/>\nLimits the user john to logon Monday- Friday between 8am and 5pm:<strong> <\/strong><br \/>\n<span style=\"color: #0000ff;\">net user john \/time:M-F,08:00-17:00<\/span><\/p>\n<p><strong>Example 2:<\/strong><br \/>\nThe same thing can also be expressed as above using the 12 hour clock :<strong> <\/strong><br \/>\n<span style=\"color: #0000ff;\">net user john \/time:M-F,8am-5pm <\/span><\/p>\n<p><strong>Example 3:<\/strong><br \/>\nThis shows the easiest way of setting limits that differ on multiple days.<br \/>\n<span style=\"color: #0000ff;\">net user john \/time:M,8am-5pm;T,1pm-3pm;W-F,8:00-17:00<\/span><\/p>\n<p><strong>Example 4:<\/strong><br \/>\nTo remove time restrictions:<br \/>\n<span style=\"color: #0000ff;\">net user john \/time:all<\/span><\/p>\n<p><strong>Note:<\/strong> <em>The system limits time to one-hour increments, which means you can only restrict the user on the hour (e.g., 13:00 or 1pm, not 13:30 or 1:30pm). You can use the abbreviation for the day (i.e., M,T,W,Th,F,Sa,Su).<\/em><\/p>\n<p>Windows accounts can be restricted from logging on to the computer at specific hours or days. You can only restrict when a user can log on to the system, but you cannot force a user to log off when their hours expire.<\/p>\n<p>The next time when you try to log onto the same account, the operating system will check the time restrictions you set to determine if you are allowed to log into the\u00a0 account. For restricted time periods, the system will required you to enter your password, even if you haven&#8217;t set any password on that account. Furthermore, it will always reject you regardless if you enter a valid or invalid password.<\/p>\n<p>&nbsp;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>One of my friends complained that his child spends too much time on his computer. He was very worried for his kid&#8217;s health. He tried to talk with the child but you know how stubborn they are. It was almost impossible to convince a six-year-old kid that spending too many hours in front of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,3,39,5,4],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-7","category-windows-8","category-windows-vista","category-windows-xp"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":13,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":19333,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/66\/revisions\/19333"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}