16
2019
10

Windows实用命令

以管理员身份运行CMD:


快速打开hosts文件

start notepad "%SystemRoot%\system32\drivers\etc\hosts"

快速干掉所有cmd窗口

start cmd /k "taskkill /f /im cmd.exe"

调出桌面图标

rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0

清除dns缓存

ipconfig /flushdns

修改账户密码

net user administrator 123     用户:administrator 密码:123

资源监视器

perfmon -res

查看连接数及端口监听状态:

netstat -ano

netstat -ano|find "80" /c      80需要查询的端口,/c计端口数

查看系统信息:

msinfo32

查看文件MD5,SHA1SHA256

certutil -hashfile D:\date.rar MD5                     D:\路径 date文件名 .rar为扩展名
certutil -hashfile D:\date.rar SHA1
certutil -hashfile D:\date.rar SHA256


查看域名所解析ip:

nslookup www.baidu.com         有的域名会同时解析多个ip

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Top