寫.bat檔幫助快速加入網域
用途要快速轉移網域 變更電腦名稱 ----------------------------------------------------------------------------------------------------------------- @echo off echo. set /p name=請輸入電腦名稱: XXXXXX 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 shutdown -r -----------------------------------------------------------------------------------------------------------------