真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

windows修改計算機名和ip

@echo off
echo.
echo.
echo 自動修改計算機名和ip
echo.

set /p f=請輸計算機的IP后綴(值小于255):
set name= test%f%

set net=本地連接 3
set ip=192.168.10.
set mask=255.255.255.0
set gateway=192.168.10.1
set DNS1=114.114.114.114
set dns2=8.8.8.8

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam" /v @ /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName" /v "ComputerName" /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v "ComputerName" /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog" /v "ComputerName" /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName" /v "ComputerName" /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d "%name%" /f >nul 
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "Hostname" /t REG_SZ /d "%name%" /f >nul
netsh interface ip set address "%net%" static %ip%%f% %mask% %gateway%
netsh interface ip set dns "%net%" static %dns1% primary
netsh interface ip add dns "%net%"  %dns2%

echo 已修改的配置信息如下:
echo.
echo 計算機名       %name%
echo ip             %ip%%f%
echo 掩碼           %mask%
echo 網(wǎng)關(guān)           %gateway%
echo dns1           %dns1%
echo dns2           %dns2%
echo.
echo "計算機名和ip修改成功"
pause

標題名稱:windows修改計算機名和ip
網(wǎng)站URL:http://weahome.cn/article/iepjsg.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部