Windows常用命令

来源:互联网 发布:demo软件 编辑:程序博客网 时间:2024/06/14 15:35

磁盘管理: diskpart

list disk: 查看电脑有几块硬盘

select disk 0 选择序号为0的磁盘 ,detail disk 显示磁盘详情

网络配置:netsh

netsh -c interface ip dump >c:/netpc.txt 到处ip配置到文件中。

netsh interface 接口上下文

netsh wlan 无线接口上下文

netsh interface ip

网卡查看:ipconfig

ipconfig /all 查看网卡所有信息

ipconfig /registerdns 刷新所有 DHCP 租用并重新注册 DNS 名称

路由表与配置:route

route print 打印路由表

route delete ?.?.?.? 删除一条路由

route add -p(建立永久路由157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway 跃点数^ ^
Interface^ /

route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

CHANGE 只用于修改网关和/或跃点数。

原创粉丝点击