@echo off
echo ★★★naton★★★
echo +=========================================================================+
set /p name=请输您的计算机名:
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %name% /f
pause
echo +==============添加IP脚本 By JYH=======================================+
echo .
echo .
echo 配置本机网络属性:
set slection1=
set/p slection1=请输入IP地址:
netsh interface ip set address name="本地连接" source=static addr=%slection1% mask=255.255.255.0
@set slection2=
@set/p slection2=请输入网关地址:
netsh interface ip set address name="本地连接" gateway=192.168.1.1 gwmetric=0
@set slection3=
@set/p slection3=请输入主dns地址
netsh interface ip set dns name="本地连接" source=static addr=192.168.1.201 register=PRIMARY
@set slection4=
@set/p slection4=请输入备份dns地址
netsh interface ip add dns name="本地连接" addr=219.150.32.132
netsh interface ip set wins name="本地连接" source=static addr=none
echo .
echo 《修改成功》
echo .
echo ★★★Naton★★★
echo +=========================================================================+
pause
收藏于 2008-10-21
来自于百度空间