{"id":16866594,"url":"https://github.com/ffes/rebootat","last_synced_at":"2026-04-15T16:31:46.962Z","repository":{"id":200050651,"uuid":"685685609","full_name":"ffes/rebootat","owner":"ffes","description":"Reboot Windows at a given time","archived":false,"fork":false,"pushed_at":"2025-09-01T12:09:33.000Z","size":28,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T08:44:02.597Z","etag":null,"topics":["reboot","schedule","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ffes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-31T19:22:35.000Z","updated_at":"2025-03-28T11:46:47.000Z","dependencies_parsed_at":"2023-12-01T11:59:29.235Z","dependency_job_id":"0148bf98-b402-448d-8210-d6e91eb9a0c0","html_url":"https://github.com/ffes/rebootat","commit_stats":null,"previous_names":["ffes/rebootat"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ffes/rebootat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffes%2Frebootat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffes%2Frebootat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffes%2Frebootat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffes%2Frebootat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ffes","download_url":"https://codeload.github.com/ffes/rebootat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ffes%2Frebootat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["reboot","schedule","windows"],"created_at":"2024-10-13T14:51:07.844Z","updated_at":"2026-04-15T16:31:46.943Z","avatar_url":"https://github.com/ffes.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RebootAt\r\n\r\n## Introduction\r\n\r\nFor years I have installed [Cygwin](https://cygwin.com) on basically all my machines.\r\nBut with the introduction of WSL and especially WSL2 I stopped using it.\r\n\r\nOne of the Cygwin tools I used often on our servers at the office was the `shutdown` command.\r\nYes, Windows has a pretty decent `shutdown.exe` but the major advantage of the Cygwin `shutdown` is that it mimics the Linux `shutdown` command, especially the possibility to add a timestamp at the end.\r\nAnd another minor disadvantage of `shutdown.exe` is that when you use the wrong command line options you could shutdown the machine instead of rebooting it.\r\n\r\n```sh\r\nshutdown -fri 23:30\r\n```\r\n\r\nThis will forcefully reboot the machine and install the pending updates at 23:30.\r\nThe program will calculate the number of seconds between the moment of invocation and the requested time and pass that to the `InitiateShutdown()` Win32 API.\r\n\r\nEvery month I miss this functionality.\r\nWhen you need to install the regular Windows updates on a number of servers, you want to reboot them at a moment it has the least impact for the users.\r\nAnd you don't want to calculate that number of seconds.\r\nAnd I don't want to have to go through the hassle of setting up a one-time Scheduled Task.\r\nA command line tool is much easier.\r\n\r\nI have maintained the [sources of Cygwin shutdown](https://github.com/cygwin/shutdown) for some time, so I took that as an inspiration for this tool.\r\nAnd since some of the code has been reused, I will obviously release this with the GPL2 license as well.\r\n\r\n## Usage\r\n\r\nThis command line tool reboots you machine at a given time.\r\n\r\nThe tool takes just one argument, a timestamp when the computer needs to reboot.\r\n\r\nThe word `now` (case insensitive) means just that, reboot immediately.\r\n\r\n```sh\r\n# Reboot immediately\r\nRebootAt now\r\n```\r\n\r\nA timestamp means to reboot at the first time this time will occur.\r\nThe timestamp has to be in 24-hours notation.\r\n\r\n```sh\r\n# Reboot today at 23:30\r\nRebootAt 23:30\r\n\r\n# Reboot tomorrow at 2:00\r\nRebootAt 2:00\r\n```\r\n\r\n`+` means the number following is in minutes.\r\n\r\n```sh\r\n# Reboot in 60 minutes\r\nRebootAt +60\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffes%2Frebootat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fffes%2Frebootat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fffes%2Frebootat/lists"}