Skip to content

yousif51811/RemoteShutdown

Repository files navigation

RemoteShutdown

A Simple windows service to shutdown a computer

Caution

Only ever use this on your own machine!

Note

This Service is best paired with the RemoteShutdown App

Building

1. Make sure you have the .NET sdk installed

2. Run the following command to build

dotnet build -c Release

3. The executable will be available at /bin/Release/app.publish

Installation

1. Move the executable to the directory of your choice.

2. Run a terminal with elevated privileges.

3. Create the service

sc create RemoteShutdown binPath="C:\Full\Path\To\Service.exe" start=auto obj="LocalSystem"

Feel free to Change the arguments to your own prefrences.

4. Run the service

sc start RemoteShutdown

Uninstalling

1. Run a terminal with elevated privileges.

2. Stop the service

sc stop RemoteShutdown

3. Uninstall the service

sc delete RemoteShutdown

Made with ❤️ by yousif51811

About

A simple windows service to shutdown a computer remotely using an HTTP request

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages