|
- set pcname=Win20%date:~2,2%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%
- echo Windows Registry Editor Version 5.00>ComputerName.reg
- echo [HKEY_CURRENT_PC\Software\Microsoft\Windows\ShellNoRoam]>>ComputerName.reg
- echo @="%pcname%">>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName]>>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]>>ComputerName.reg
- echo "ComputerName"="%pcname%">>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]>>ComputerName.reg
- echo "ComputerName"="%pcname%">>c:\TempInfo.reg>>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog]>>ComputerName.reg
- echo "ComputerName"="%pcname%">>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]>>ComputerName.reg
- echo "ComputerName"="%pcname%">>ComputerName.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]>>ComputerName.reg
- echo "NV Hostname"="%pcname%">>ComputerName.reg
- echo "Hostname"="%pcname%">>ComputerName.reg
- echo [HKEY_PCS\.DEFAULT\Software\Microsoft\Windows\ShellNoRoam]>>ComputerName.reg
- echo @="%pcname%">>ComputerName.reg
- regedit /s ComputerName.reg
- del /q ComputerName.reg
复制代码 |
|