Hello guys, below is a small script I made to change the name of the network using computers running batch file.

Copy the text below and save as. Bat

Follow the Script:


@ECHO OFF
call :quiet>nul 2>&1
goto :EOF
 
::Script change computer name | Bruno Cardoso 

::Change all words "Testto the new name of the computer.

:: Required restart after 30 minutes or change line "shutdown -r -t 1800" 

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v ComputerName /t REG_SZ /d %PCNAME% Test /f

REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName\ /v ComputerName /t REG_SZ /d %PCNAME% Test /f

REG ADD HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ /v Hostname /t REG_SZ /d %PCNAME% Test /f

REG ADD HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\ /v "NV Hostname" /t REG_SZ /d %PCNAME% Test /f

shutdown -r -t 1800

exit
 

Example of how my rule was working inside the Dell Kace:

 

rules

Any questions please leave a comment.

Copy smoothly, just put the credits .. ;)