常用的几个Dos命令-持续更新中

1.服务相关

(1).查看服务

C:Windowssystem32>net start
已经启动以下 Windows 服务:

(2).启动服务

C:Windowssystem32>net start MpsSvc
Windows Firewall 服务正在启动 .
Windows Firewall 服务已经启动成功。

(3).停止服务

C:Windowssystem32>net stop MpsSvc
Windows Firewall 服务正在停止.
Windows Firewall 服务已成功停止。

(4)卸载服务

sc delete 服务名称

2.系统优化

(1)关闭休眠模式

powercfg -h off

(2)打开休眠模式

powercfg -h on

(3)修改hosts文件

C:WindowsSystem32driversetc

原文地址:https://www.cnblogs.com/kimisme/p/5421923.html