how to change the workgroup with a reg file?

hacktobe

New Member
I don't want to restart my computer,so I want to change my workgroup by a reg file.In xp you can change it with this reg file,is this also work in vista?

Code:
@echo off
echo AppLife.Net
set /p name=your computername:
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %name% /f >nul 2>nul
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %name% /f >nul 2>nul
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %name% /f >nul 2>nul
echo.
echo computername is changed
echo.
echo AppLife.Net
set /p work1=please input the workgroup name:
wmic computersystem where Name="%COMPUTERNAME%" call JoinDomainOrWorkgroup Name="%work1%"
echo work done
pause>nul
echo.
 

My Computer

Back
Top