/build/static/layout/Breadcrumb_cap_w.png

Change Name Computer .BAT Script Kace


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 .. ;)


Comments

This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ