Remote Shutdown for Windows XP/2000/NT


This is little utility which runs as service under Windows and acts like http server at port 20080. Only one file LeonDown.exe runs the service on port 20080 and listens for the following three commands:
  1. poweroff
  2. reboot
  3. logout

Source code is included in the archive.


For example enter http://localhost:20080/poweroff in your browser to shutdown the machine. You can even use this buttons to reboot your computer (after installed and started the LeonDown service)
This commands can be initiated with several utilities like wget, fetch, telnet or browsers like netscape, internet explorer, opera, ... Example for Linux/FreeBSD
fetch http://localhost:20080/poweroff
wget http://localhost:20080/poweroff
Of course this can be remotely issued if you change localhost to the actual name of the computer.


Before installing you will need Microsoft .NET Framework Version 1.1 Redistributable Package which can be downloaded from Microsoft site. After that just run LeonDown setup which will install LeonDown service. LeonDown service can be started with service manager (MyComputer/Manage/Services) or just reboot the computer to start the service automatically.

Manual Installation

In the archive you will find LeonDown.exe which is Windows service and needs first to be installed and then started. After installed it will automatically start at system boot. To install this utility you will need InstallUtil.exe program which is normally found under c:\windows\Microsoft.NET\Framework\v1.1.. Type dir /s \windows\InstallUtil.exe to search for one. Look into install.bat for details.
C:\windows\Microsoft.NET\Framework\v1.1.4322\installutil leondown.exe
net start LeonDown

To deinstall use the following commands

net stop LeonDown
C:\windows\Microsoft.NET\Framework\v1.1.4322\installutil leondown.exe /u


None whatsoever. Hide this machine behind a wall. Frankly portnumber and command name is a good protection for port scanners.


Source Code in C# is for .NET Development studio. Microsoft Installer package Setup-LeonDown.msi for end users also includes this readme file.


Free of charge GPL. Copyright © 2004, Leon Kos.
Leon Kos
Last modified: Mon Mar 22 13:59:50 CET 2004