注册表修改计算机名称的疑问

来源:百度知道 编辑:UC知道 时间:2024/05/21 08:20:13
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %name% /f
reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %name% /f
这3个都是修改计算机名称的,不知道有什么区别

普通型的增加 \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\ComputerName\\ ActiveComputerName\"/v ComputerName/t reg_sz/d%名字%/f
普通型的增加 \"HKEY_LOCAL_MACHINE\\ System\\CurrentControlSet\\Services\\Tcpip\\Parameters\" /v\" NV Hostname\"/t reg_sz/d%命名%/f
普通型的增加 \"HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Tcpip\\ Parameters\"/v Hostname/t reg_sz/d%名字%/f