Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remotely shutdown or reboot a Windows machine.

License

Notifications You must be signed in to change notification settings

zimbres/PowerControl

Repository files navigation

Power Control

The PowerControl is a background service that monitors commands from an HTTP service and performs system actions, such as remote shutdowns. It also sends periodic "heartbeat" messages to confirm that the software is operational.

Configuration required:

{
  "Logging": {
    "LogLevel": {
      "Default": "Warning",
      "Microsoft.Hosting.Lifetime": "Warning"
    }
  },
  "Configuration": {
    "Url": "https://127.0.0.1/get_power_command",
    "Data": "shutdown",
    "Delay": 60,
    "Command": "shutdown",
    "Arguments": "/s /t 60",
    "IamAliveUrl": "https://127.0.0.1/iam_alive",
    "IamAliveEnabled": false,
    "UseMqtt": false,
    "Broker": "127.0.0.1",
    "Port": 1883,
    "Topic": "example/topic",
    "WillTopic": "example/LWT",
    "Username": "",
    "Password": ""
  }
}

Microsoft Help: Create Windows Service


Application icon by Flaticon

About

Remotely shutdown or reboot a Windows machine.

Resources

License

Security policy

Stars

Watchers

Forks

Languages