{"id":655,"date":"2016-12-09T18:44:30","date_gmt":"2016-12-09T07:44:30","guid":{"rendered":"http:\/\/www.nickdu.com\/?p=655"},"modified":"2016-12-09T18:44:30","modified_gmt":"2016-12-09T07:44:30","slug":"windows-change-computer-name-without-reboot","status":"publish","type":"post","link":"https:\/\/nickdu.com\/?p=655","title":{"rendered":"Windows change computer name without reboot"},"content":{"rendered":"<p>Save this as a batch file, and run from command console<\/p>\n<pre>set \/p newName=Please input the new computer name:\n\necho Modifying registry keys...\n\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName\" \/v \"ComputerName\" \/d \"%newName%\" -f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName\" \/v \"ComputerName\" \/d \"%newName%\" -f \nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet002\\Control\\ComputerName\\ComputerName\" \/v \"ComputerName\" \/d \"%newName%\" -f \nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\ComputerName\\ActiveComputerName\" \/v \"ComputerName\" \/d \"%newName%\" -f \nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\ComputerName\\ComputerName\" \/v \"ComputerName\" \/d \"%newName%\" -f \nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\Tcpip\\Parameters\" \/v \"Hostname\" \/d \"%newName%\" -f \nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\Tcpip\\Parameters\" \/v \"NV Hostname\" \/d \"%newName%\" -f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\services\\Tcpip\\Parameters\" \/v \"Hostname\" \/d \"%newName%\" -f\nreg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\services\\Tcpip\\Parameters\" \/v \"NV Hostname\" \/d \"%newName%\" -f\nreg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" \/v \"DefaultDomainName\" \/d \"%newName%\" -f\nreg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" \/v \"AltDefaultDomainName\" \/d \"%newName%\" -f\n\necho Finish updating registry...\n\necho Update DNS...\nipconfig \/renew\nipconfig \/flushdns\nipconfig \/registerdns\necho Finish updating DNS...\n\nset computername=%newName%\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Save this as a batch file, and run from command console set \/p newName=Please input the new computer name: echo Modifying registry keys&#8230; reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ActiveComputerName&#8221; \/v &#8220;ComputerName&#8221; \/d &#8220;%newName%&#8221; -f reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName&#8221; \/v &#8220;ComputerName&#8221; \/d &#8220;%newName%&#8221; -f reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet002\\Control\\ComputerName\\ComputerName&#8221; \/v &#8220;ComputerName&#8221; \/d &#8220;%newName%&#8221; -f reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\ComputerName\\ActiveComputerName&#8221; \/v &#8220;ComputerName&#8221; \/d &#8220;%newName%&#8221; -f &hellip; <a href=\"https:\/\/nickdu.com\/?p=655\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Windows change computer name without reboot&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=655"}],"version-history":[{"count":0,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"wp:attachment":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}