Im guessing many of you use the svrany tool to setup services (e.g. ftp, etc).
Now, in the registry if you go to hklm\system\currentcontrolset\services\servicename\ and open the binary key FailureActions you can set the service to restart on 1st failure, and reboot on 2nd failure...perfect for all the warez kiddies!
Now, you will see that the current binary values at bit 14 and bit 1C contain value 00 in both cases.
Change bit 14 to value 01 and bit 1C to value 02 and the service will behave as i described.
Now for the interesting part. This can all set from cmd.exe:
reg add hklm\system\currentcontrolset\services\test /v FailureActions /t REG_BINARY
/d 00000000000000000000000003000000770073000100000060EA00000200000060EA000000000
00000000000
Give it a try and let me know if you find any other useful bits that can be changed in here.