{"id":1303,"date":"2014-02-19T15:53:39","date_gmt":"2014-02-19T20:53:39","guid":{"rendered":"http:\/\/batchpatch.com\/?p=1303"},"modified":"2017-11-13T15:04:39","modified_gmt":"2017-11-13T20:04:39","slug":"deploy-registry-keys-to-multiple-computers-using-batchpatch","status":"publish","type":"post","link":"https:\/\/batchpatch.com\/deploy-registry-keys-to-multiple-computers-using-batchpatch","title":{"rendered":"Deploy Registry Keys to Multiple Computers Using BatchPatch"},"content":{"rendered":"<p>A systems administrator frequently needs to update the Windows Registry of every computer on his\/her network.  Did you know that you can use BatchPatch to accomplish this task extremely rapidly?  BatchPatch provides administrators with a very simple way of getting registry keys to remote computers on a network.<\/p>\n<ol>\n<li>Before we do anything please note that if you are going to be deploying a registry key\/value to the HKEY_CURRENT_USER (HKCU) hive of the target computer(s), then you need to make sure that your &#8216;<em><strong>Remote Execution Context<\/strong><\/em>&#8216; is set to &#8216;<strong>Elevated token<\/strong>&#8216; and not &#8216;<strong>SYSTEM<\/strong>&#8216;.  If you are deploying a registry key\/value to the HKEY_LOCAL_MACHINE (HKLM) hive of the target computer(s), then your &#8216;<em><strong>Remote Execution Context<\/strong><\/em>&#8216; can probably be set to either &#8216;<strong>SYSTEM<\/strong>&#8216; or &#8216;<strong>Elevated token<\/strong>&#8216;.  More details here: &#8216;<a href=\"\/remote-execution-context\" rel=\"noopener\" target=\"_blank\">Remote Execution Context<\/a>&#8216;<\/li>\n<p><\/p>\n<li>Create a .reg file for deployment.  To do this you simply launch regedit.exe and highlight the key that you want to deploy to your target computers, and then choose File > Export.  The registry editor application will create a .reg file for you.  If you look at that reg file in a text editor, you&#8217;ll see it contains a line for each value in the key that you are creating\/modifying.  In the below screenshot you can see a .reg file for a FileZilla configuration that contains a single DWORD value in the <code>HKLM\\SOFTWARE\\FileZilla<\/code> key.<br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/FileZilla_RegFile.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/FileZilla_RegFile.png\" alt=\"FileZilla_RegFile\" width=\"467\" height=\"255\" class=\"aligncenter size-full wp-image-1295\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/FileZilla_RegFile.png 467w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/FileZilla_RegFile-300x163.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/a><\/p>\n<\/li>\n<li>Now that you have your .reg file prepared, highlight the hosts in BatchPatch that you want to deploy it to, and select <em><b>Actions > Deploy software\/patch\/script\/regkey > Create\/modify deployment<\/b><\/em><br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key.png\" alt=\"Deploy_Registry_Key\" width=\"663\" height=\"417\" class=\"aligncenter size-full wp-image-1297\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key.png 663w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key-300x188.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/a>\n<\/li>\n<li>Browse to the location of your .reg file.  After you select the file and click OK, you&#8217;ll see that BatchPatch displays the <em>Command to execute:<\/em><br \/>\n<code>regedit.exe \/s \"yourRegFile.reg\"<\/code><br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key2.png\" alt=\"Deploy_Registry_Key2\" width=\"462\" height=\"372\" class=\"aligncenter size-full wp-image-1299\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key2.png 462w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deploy_Registry_Key2-300x241.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a>\n<\/li>\n<li>The last thing you need to do is actually execute the deployment.  You can do this by highlighting the hosts you are deploying to, and then select em><b>Actions > Deploy software\/patch\/script\/regkey > Execute deployment.<\/b><\/em>  Upon successful completion of the deployment you should see Exit Code: 0 in the All Messages column.<br \/>\n&nbsp;<br \/>\n<a href=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deployment_Exit_Code_0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deployment_Exit_Code_0.png\" alt=\"Deployment_Exit_Code_0\" width=\"663\" height=\"417\" class=\"aligncenter size-full wp-image-1302\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deployment_Exit_Code_0.png 663w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/02\/Deployment_Exit_Code_0-300x188.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/a>\n<\/li>\n<\/ol>\n<p><!--LINE SEPARATOR--><\/p>\n<hr style=\"border-top: 1px solid white; border-bottom: 1px solid gray; width:100%;\"<\/hr>\n<p><!--LINE SEPARATOR--><br \/>\n<b>Here&#8217;s a video demonstration of registry key deployment with BatchPatch:<\/b><\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ourr7YfAOdE?feature=player_detailpage\" frameborder=\"0\" width=\"540\" height=\"360\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A systems administrator frequently needs to update the Windows Registry of every computer on his\/her network. Did you know that you can use BatchPatch to accomplish this task extremely rapidly? BatchPatch provides administrators with a very simple way of getting registry keys to remote computers on a network. Before we do anything please note that [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,17,3],"tags":[29,22],"class_list":["post-1303","post","type-post","status-publish","format-standard","hentry","category-blog","category-general","category-tutorials","tag-deploy-registry-keys","tag-deploy-software"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/comments?post=1303"}],"version-history":[{"count":8,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1303\/revisions"}],"predecessor-version":[{"id":3856,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1303\/revisions\/3856"}],"wp:attachment":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/media?parent=1303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/categories?post=1303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/tags?post=1303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}