|
修改机器名不重启生效,我做一键还原下搞过。用注册表法可以,我找一下。
reg add "HKLM\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d zhj /f
reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d zhj /f
reg add "HKLM\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet001\Control\ComputerName\ComputerName" /v ComputerName /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName" /v ComputerName /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v NV Hostname /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v Hostname /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet003\Control\ComputerName\ComputerName" /v ComputerName /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet003\Services\Tcpip\Parameters" /v NV Hostname /t REG_SZ /d zhj /f
Reg add "HKLM\SYSTEM\ControlSet003\Services\Tcpip\Parameters" /v Hostname /t REG_SZ /d zhj /f
xp下是这样的,不用重启生效。上面机器名是zhj
[ 本帖最后由 zhaohj 于 2010-6-24 17:41 编辑 ] |
|