{"id":19963848,"url":"https://github.com/systemjargon/windows-logoff-hours","last_synced_at":"2025-07-11T18:36:49.649Z","repository":{"id":60167216,"uuid":"429978644","full_name":"SystemJargon/windows-logoff-hours","owner":"SystemJargon","description":"For Windows OS. Force logout and restrict the logon hours allowed by defined hours. Times/users set as variables in powershell script. Useful for parents.","archived":false,"fork":false,"pushed_at":"2023-02-18T05:26:11.000Z","size":66,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T16:49:35.572Z","etag":null,"topics":["logon-hours","parental-control","parental-control-tool","powershell","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SystemJargon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-20T01:20:00.000Z","updated_at":"2025-04-01T01:57:49.000Z","dependencies_parsed_at":"2022-09-26T04:10:25.044Z","dependency_job_id":null,"html_url":"https://github.com/SystemJargon/windows-logoff-hours","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SystemJargon/windows-logoff-hours","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemJargon%2Fwindows-logoff-hours","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemJargon%2Fwindows-logoff-hours/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemJargon%2Fwindows-logoff-hours/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemJargon%2Fwindows-logoff-hours/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystemJargon","download_url":"https://codeload.github.com/SystemJargon/windows-logoff-hours/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemJargon%2Fwindows-logoff-hours/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264872280,"owners_count":23676613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logon-hours","parental-control","parental-control-tool","powershell","powershell-script"],"created_at":"2024-11-13T02:17:42.278Z","updated_at":"2025-07-11T18:36:49.623Z","avatar_url":"https://github.com/SystemJargon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Owner source https://github.com/SystemJargon/parental-settings --\u003e\n\n\nI have a powershell script which does most of the command line and scheduled task work for you.\nIt it commented to self-explain what it does mostly.\n\n\u003cb\u003eFilename: set-logoff-time.ps1\u003c/b\u003e\n\n* [View in GitHub](https://github.com/SystemJargon/windows-logoff-hours/blob/main/set-logoff-time.ps1) \n* [RAW PS1 file / download](https://raw.githubusercontent.com/SystemJargon/windows-logoff-hours/main/set-logoff-time.ps1)\n\n----\n\nOtherwise use the guide below / copy and paste the command line examples given, again change username/time to suit your requirements.\n\n\n## How-To\n\nOpen the commaand prompt as Administrator, powershell can work but may not recognize multi-string days using \";\".\n\nReplace username \"kids\" with whatever username is desired.\n\nDay format is, Su, M, T, W, Th, F, Sa\n\nuses 12 hour clock, not 24 hour clock.\n\n## EXAMPLES ##\n\n### To add all days of the Week and allow only login between 10am to 10pm.\nnet user kids /time:M-Su,10am-10pm\n\n### To remove any logon hours\nnet user kids /time:ALL\n\n### To restrict ALL logon hours (none allowed)\nnet user kids /time:\n\n### Multiple days string with limits (or use just single days if wanted)\nnet user kids /time:Sa-Su,8am-9pm;M-F,4pm-9pm\n\n### Force logoff when time is up\nScheduled task, set a time. Action: Program, \"shutdown\", Parameters/Arguments: \"/l /f\" (no quote marks).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemjargon%2Fwindows-logoff-hours","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemjargon%2Fwindows-logoff-hours","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemjargon%2Fwindows-logoff-hours/lists"}