查看电脑名称:
hostname
查看网卡信息:
ipconfig
快速打开网络设置界面:
control.exe netconnections
或
rundll32.exe shell32.dll,Control_RunDLL ncpa.cpld
打开防火墙设置:
wf.msc
指定网卡设置IP地址:
netsh interface ipv4 set address name="WLAN" static 6.6.6.22 255.255.255.0
网卡设为自动获取IP
netsh interface ipv4 set address "WLAN" dhcp
自动获取DNS
netsh interface ipv4 set dns "网络名称" dhcp