Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows modifies computer name and ip

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

@ echo offecho.echo.echo automatically modifies the computer name and ipecho.set / p f = Please enter the computer's IP suffix (value less than 255th): set name= test%f%set net= local connection 3set ip=192.168.10.set mask=255.255.255.0set gateway=192.168.10.1set dns1=114.114.114.114set dns2=8.8.8.8reg 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 > nulnetsh interface ip set address"% net% static " % ip%%f%% mask%% gateway%netsh interface ip set dns "% net%" static% dns1% primarynetsh interface ip add dns "% net%"% dns2%echo modified configuration information is as follows: echo.echo computer name% name%echo ip% ip%%f%echo mask% mask%echo gateway% gateway%echo dns1% dns1%echo dns2 Dns2%echo.echo computer name and ip modified successfully pause

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report