call C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86\
创建服务
sc create runsys binpath= "cmd /k start c:\debug.bat" type= own type= interact
完成后机器不用登录都可以调试了