{"id":758,"date":"2016-08-26T06:18:14","date_gmt":"2016-08-26T04:18:14","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=758"},"modified":"2016-08-26T06:20:49","modified_gmt":"2016-08-26T04:20:49","slug":"export-and-import-dhcp-settings-with-netsh","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=758","title":{"rendered":"Export and import DHCP settings with netsh"},"content":{"rendered":"<p>Sometimes you will have to transfer DHCP settings via netsh command. This could be useful for a couple of reasons and it is fine to know how to approach it. Anyway, this is the quickest way to do a DHCP migration.<br \/>\nFirst you have to login to source server (it could be also a failover clustered DHCP service) and open CMD as Administrator. Then you have to enter in netsh mode with typing:<br \/>\n<em><strong>netsh<\/strong><\/em><br \/>\nNow you have to select server with typing:<br \/>\n<em><strong>dns server \\\\servername<\/strong><\/em><br \/>\nWhere servername is the name of the old DHCP server or clustered service name. This will connect you to DHCP server and you are ready to export settings with this command:<br \/>\n<em><strong>export filename all<\/strong><\/em>\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0to export the entire configuration or<br \/>\n<em><strong>export filename 192.168.222.0<\/strong><\/em>\u00a0\u00a0 \u00a0to export only a scope configuration (in my case 192.168.222.0)<br \/>\nOf course, you have to replace the filename with full path and name of the file where you want to save exported data. This file now must be transferred to target \u2013 new server and we are ready to import the configuration. Of course, priory you import the configuration, the new server has to be authorized in AD. To begin an import procedure, we have to do the same steps as on the old server; open command prompt, enter into netsh mode and select DHCP server. After this, we have just a step to import settings with this command:<br \/>\n<em><strong>Import filename all\u00a0<\/strong><\/em>\u00a0 \u00a0\u00a0\u00a0 \u00a0to import all settings or<br \/>\n<em><strong>Import filename 192.168.222.0<\/strong><\/em>\u00a0\u00a0 \u00a0to import just a scope<br \/>\nThat\u2019s all. Just be sure to double-check if the import did its job, disable and unautorize the old server (you can do it also with netsh: <em><strong>netsh dhcp delete server ServerIP<\/strong><\/em>). Of course, don\u2019t forget to uninstall the service on the old computer.<br \/>\nYou have finished. Good work!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you will have to transfer DHCP settings via netsh command. This could be useful for a couple of reasons and it is fine to know how to approach it. Anyway, this is the quickest way to do a DHCP migration. First you have to login to source server (it could be also a failover [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7,14,15],"tags":[17,24,40],"class_list":["post-758","post","type-post","status-publish","format-standard","hentry","category-essentials-server","category-management","category-windows-sbs-server","category-windows-server","tag-essentials-server-2","tag-small-business-server","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=758"}],"version-history":[{"count":3,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}