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

时间:2023-03-08 22:38:23
常用的几个Dos命令-持续更新中

1.服务相关

(1).查看服务

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

(2).启动服务

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

(3).停止服务

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

(4)卸载服务

sc delete 服务名称

2.系统优化

(1)关闭休眠模式

powercfg -h off

(2)打开休眠模式

powercfg -h on

(3)修改hosts文件

C:\Windows\System32\drivers\etc