精品文档windows7 cmd命令改变IP地址、 DNS和代理设置
改变IP地址设置
@echo off netsh interface ipv4 set address "无线网络连接" static 192.168.100.200 255.255.255.0
192.168.100.1netsh interface ipv4 set dns name="无线网络连接" source=static addr=8.8.4.4netsh interfac e ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo ------------------------------------------------------------------------------echo ---------------------------------------------------------------------------------echo -----------------------------
改为DHPC 自动获取设置
@echo offf netsh interface ipv4 set address name="无线网络连接" source=dhcp netsh interface ipv4 set dns name="无线网络连接" source=dhcp echo ------------------------------
开启IE代理服务器设置
@echo off title 自动设置代理服务器echo正在设置代理服务器„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWORD/d 1 /f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"192.168.100.100:808" /f reg add"HKCUSoftwareMicrosoftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d"" /f
echo正在刷新设置„„ipconfig/flushdns
精品文档
精品文档
关闭IE代理服务器设置:
@echo off title 自动清除IE代理echo正在清空代理服务器设置„„reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyEnable/t REG_DWO RD/d 0/f
reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyServer /d"" /f reg add"HKCUSoftwareMicros oftWindow sCurrentVersionInternet Settings" /v ProxyOverride /t REG_SZ/d 0/f
echo代理服务器设置已经清空echo正在刷新设置„„ipconfig/flushdns
批处理自动选择网络设置全文
注复制到记事本文件中别存为后缀改为”.bat”文件。在win7系统中运行时会提示 “请求的操作需要提升为<作为管理员运行>”只需要在此bat文件上右击“以管理员身份运行”即可。
全文如下
@echo off color 1f title windows 7多网络环境自动切换管理echo.echo ********************************************echo *** windows 7双网络环寺自动切换管理 ***echo *** 作者王明洪MSN:kswmh@hotmail.com ***echo ********************************************echo *** 设置IP参数,设置IE代理 ***echo.echo.goto me nus
:me nus echo.echo请选择:echo.echo 1切换到家庭代理网络echo.echo 2切换到学校自动获取IP地址网络。echo.
精品文档
精品文档echo 3放弃设备退出echo.set/p select=请输入菜单对应数字后回车:if/i "%se le ct%"=="1"goto home if/i "%select%"=="2"goto school if/i "%select%"=="3"exit goto me nus
:ho me cls netsh interface ip reset "无线网络连接"echo设置IP. . .设置网关. . . . .设置子网netsh interface ipv4 set address "无线网络连接" static 192.168.100.200
255.255.255.0192.168.100.1echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=static addr=8.8.4.4netsh interface ipv4 add dns name="无线网络连接"addr=61.177.7.1 index=2echo设置IE代理. . .echo正在设置代理服务器„„reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 1 /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"192.168.100.100:808" /f reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d"" /f echo正在刷新设置„„ipconfig/flushdns goto exit
:school cls echo设置学校网络自动IP地址.netsh interface ipv4 set address name="无线网络连接" source=dhcp echo设置DNS. . .netsh interface ipv4 set dns name="无线网络连接"source=dhcp echo正在清除代理服务器设置„„echo正在清空代理服务器设置„„reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyEnab le/t REG_DWO RD/d 0/f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyS e rver/d"" /f reg add "HKCUSo ftwareMicroso ftWindowsCurrentVersionInternet Settings" /v ProxyOverride/t REG_SZ/d 0/f echo代理服务器设置已经清空echo正在刷新设置„„
精品文档
精品文档ipconfig/flushdns goto exit
:exit cls echo.cho.echo.echo.echo.echo************恭喜!网络设置以完成。echo.echo.echo.echo.echo.echo.pause e x it
设置有线与无线同时连接网络route de lete 0.0.0.0route-p add 10.0.0.0 mask 255.0.0.0172.16.64.1 metric 1route-p add 0.0.0.0 mask 0.0.0.0192.168.160.1 metric 25精品文档
greencloudvps怎么样?greencloudvps是一家国外主机商,VPS数据中心多,之前已经介绍过多次了。现在有几款10Gbps带宽的特价KVM VPS,Ryzen 3950x处理器,NVMe硬盘,性价比高。支持Paypal、支付宝、微信付款。GreenCloudVPS:新加坡/美国/荷兰vps,1核@Ryzen 3950x/1GB内存/30GB NVMe空间/1TB流量/10Gbps...
spinservers美国圣何塞机房的独立服务器补货120台,默认接入10Gbps带宽,给你超高配置,这价格目前来看好像真的是无敌手,而且可以做到下单后30分钟内交货,都是预先部署好了的。每一台机器用户都可以在后台自行安装、重装、重启、关机操作,无需人工参与! 官方网站:https://www.spinservers.com 比特币、信用卡、PayPal、支付宝、webmoney、Payssi...
TMThosting发布了今年黑色星期五的促销活动,即日起到12月6日,VPS主机最低55折起,独立服务器9折起,开设在西雅图机房。这是一家成立于2018年的国外主机商,主要提供VPS和独立服务器租用业务,数据中心包括美国西雅图和达拉斯,其中VPS基于KVM架构,都有提供免费的DDoS保护,支持选择Windows或者Linux操作系统。Budget HDD系列架构CPU内存硬盘流量系统价格单核51...