# Windows TCP shutdown audio service TCP消息关机服务 **Repository Path**: btsc/tcpshutdownwin ## Basic Information - **Project Name**: Windows TCP shutdown audio service TCP消息关机服务 - **Description**: 通过发送TCP消息关机的Windows服务 - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-08-23 - **Last Updated**: 2024-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Windows远程TCP消息关机服务 # Windows TCP Shutdown Service ## 安装卸载 1. 克隆项目并在vs生成项目 2.在超管powershell中 ``` cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 InstallUtil C:\...\bin\Debug\MyService.exe ----------安装服务 InstallUtil -u C:\...\bin\Debug\MyService.exe ----------卸载服务 ``` 3.在cmd中卸载服务 ``` sc delete Service1(这个名称在ProjectInstaller.cs设计的属性 ServiceName) ``` 4. 使用 TCP 给目标IP:5000 发送 shutdown 指令即可 首次安装需要在services.msc手动启用,或者重启后会自动启动(StartType属性)