{"id":20490258,"url":"https://github.com/juniormayhe/automaticshutdown","last_synced_at":"2026-04-15T16:03:19.982Z","repository":{"id":115727089,"uuid":"90768321","full_name":"juniormayhe/AutomaticShutdown","owner":"juniormayhe","description":"Allow IT administrators to quickly deploy a Windows shutdown policy over a network with a shared configuration file. C#, Windows Forms, NET Framework 4.6.1","archived":false,"fork":false,"pushed_at":"2017-07-25T22:30:55.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T17:23:12.194Z","etag":null,"topics":["c-sharp","net-framework-461","shutdown-timer","windows","windows-forms"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juniormayhe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T16:33:15.000Z","updated_at":"2023-08-24T15:27:13.000Z","dependencies_parsed_at":"2023-07-04T18:17:36.242Z","dependency_job_id":null,"html_url":"https://github.com/juniormayhe/AutomaticShutdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juniormayhe/AutomaticShutdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniormayhe%2FAutomaticShutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniormayhe%2FAutomaticShutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniormayhe%2FAutomaticShutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniormayhe%2FAutomaticShutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juniormayhe","download_url":"https://codeload.github.com/juniormayhe/AutomaticShutdown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniormayhe%2FAutomaticShutdown/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c-sharp","net-framework-461","shutdown-timer","windows","windows-forms"],"created_at":"2024-11-15T17:16:18.950Z","updated_at":"2025-10-08T12:02:38.903Z","avatar_url":"https://github.com/juniormayhe.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n     /\\        | |                      | | (_)     \n    /  \\  _   _| |_ ___  _ __ ___   __ _| |_ _  ___ \n   / /\\ \\| | | | __/ _ \\| '_ ` _ \\ / _` | __| |/ __|\n  / ____ \\ |_| | || (_) | | | | | | (_| | |_| | (__ \n /_/____\\_\\__,_|\\__\\___/|_| |_| |_|\\__,_|\\__|_|\\___|\n  / ____| |         | |    | |                      \n | (___ | |__  _   _| |_ __| | _____      ___ __    \n  \\___ \\| '_ \\| | | | __/ _` |/ _ \\ \\ /\\ / / '_ \\   \n  ____) | | | | |_| | || (_| | (_) \\ V  V /| | | |  \n |_____/|_| |_|\\__,_|\\__\\__,_|\\___/ \\_/\\_/ |_| |_|  \n```\n# AutomaticShutdown\nAllow IT administrators to quickly deploy a Windows shutdown policy over a network with a shared configuration file.\n\n## Deploy Instructions\n\n* If you want to automatically shutdown computers running Windows in your Network, make sure that all computers have [.NET Framework 4.6.1 installed](https://www.microsoft.com/en-us/download/details.aspx?id=49982).\n\n* In each computer, deploy `AS.exe`, `KeepAliveAS.exe` and `AS.config`\n\t\n* In each computer edit AS.config for changing the `GLOBAL_CONFIGURATOR`. It should point to a file name shared in your network, which will be visible for all computers. I.e.:\n```\n\u003cadd key=\"GLOBAL_CONFIGURATOR\" value=\"\\\\A-REMOTE-HOST\\SHARED-FOLDER\\as.global.cfg\"/\u003e\n```\n\n* Make sure all computers have read right over network for shared configuration file `\\\\A-REMOTE-HOST\\SHARED-FOLDER\\`\n\t\n* Edit the global configuration file `\\\\A-REMOTE-HOST\\SHARED-FOLDER\\as.global.cfg` and add a shutdown policy configuration for all computers:\n```ini\n//LIMIT HOUR can be: 10PM, 10 PM OR 22 \nLIMIT HOUR = 10PM\n\n//TIME TO WAIT IN MINUTES FOR USER CONFIRMATION BEFORE SHUTDOWN. TO WAIT FOR 1 HOUR FOR USER'S CONFIRMATION ENTER 60\nTIME TO CONFIRM SHUTDOWN = 60\n\n//TIME TO WAIT IN MINUTES BEFORE ASKING AGAIN ABOUT SHUTDOWN. TO POSTPONE FOR 2 HOURS, INFORM EQUIVALENT SECONDS: 120\nTIME TO POSTPONE SHUTDOWN = 120\n\n//TO ENABLE AUTOMATIC SHUTDOWN put: Y or YES or 1 AND TO DISABLE PUT N or NO or 0\nSHUTDOWN ENABLED = Y\n\n//NAME OF HOSTNAMES WHICH SHUTDOWN WILL NOT BE EXECUTED can be: YOUR-COMPUTER ANOTHER-HOSTNAME or YOUR-COMPUTER, ANOTHER-HOSTNAME\nIGNORE HOSTNAMES = LOCALHOST\n```\n* In each computer, add a scheduled task in Windows for running `KeepAliveAS.exe` at Windows start up; or add it exe into your logon script.\n\n* When a shutdown warning appears, you set a local shutdown policy in a specific computer by pressing [SHIFT] + [C] + [P]\n\n\n## Debug instructions\n\n* Make sure you have a Postbuild command in AS project such as \n```\nxcopy \"$(TargetDir)*.*\" \"$(ProjectDir)..\\KeepAliveAS\\bin\\Debug\\\" /Y /I\n```\nThis will copy AS outputs (exe and config) to KeepAliveAS folder, as keep alive tries to find in current path AS.exe in order to keep it runnning.\n\n* Set the solution to start multiple projects (AS and KeepAliveAS).\n* Run the solution\n\n## Comments and feedback\n\nYou can drop me a message at juniormayhe [at] gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniormayhe%2Fautomaticshutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuniormayhe%2Fautomaticshutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniormayhe%2Fautomaticshutdown/lists"}