reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\net.exe" /v "Debugger" /d "ntsd -d" /t REG_SZ /f
补充:
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe" /v "Debugger" /d "ntsd -d" /t REG_SZ /f
补充:
点击“开始”菜单→“运行”命令,在弹出的“运行”对话框中输入上面命令--确定