{"id":304,"date":"2009-11-30T12:39:36","date_gmt":"2009-11-30T19:39:36","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=304"},"modified":"2009-11-30T12:39:36","modified_gmt":"2009-11-30T19:39:36","slug":"modify-windows-registry-using-vb-script","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=304","title":{"rendered":"Modify Windows registry using VB script."},"content":{"rendered":"<p>Here is an example of a VB script I used to set the domain suffix search list on a Windows machine.  I just saved the following in a file with a vbs extension and executed the script.<\/p>\n<p>SET WSHShell = CreateObject(&#8220;WScript.Shell&#8221;)<\/p>\n<p>WSHShell.RegWrite &#8220;HKLM\\System\\CurrentControlSet\\Services\\TCPIP\\Parameters\\SearchList&#8221;, &#8220;mydomain1.com,mydomain2.com&#8221;, &#8220;REG_SZ&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is an example of a VB script I used to set the domain suffix search list on a Windows machine. I just saved the following in a file with a vbs extension and executed the script. SET WSHShell = CreateObject(&#8220;WScript.Shell&#8221;) WSHShell.RegWrite &#8220;HKLM\\System\\CurrentControlSet\\Services\\TCPIP\\Parameters\\SearchList&#8221;, &#8220;mydomain1.com,mydomain2.com&#8221;, &#8220;REG_SZ&#038;#<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[37,35,36],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-registry","tag-vb-script","tag-windows"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":305,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions\/305"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}