{"id":1894,"date":"2021-10-26T17:29:56","date_gmt":"2021-10-26T17:29:56","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=1894"},"modified":"2021-10-26T17:32:15","modified_gmt":"2021-10-26T17:32:15","slug":"invalid-syntax-running-a-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/invalid-syntax-running-a-batch-file\/28619.html","title":{"rendered":"Invalid Syntax Running A Batch File"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p>Am trying to create a batch file with the following command in Windows 7:<\/p>\n<p>REG ADD HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy Objects\\{A711A0A8-6020-4FB1-A477-4E550E2FBE76}Machine\\Software\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions \/v AllowAdminInstall \/t REG_DWORD \/d 1<\/p>\n<p>However it is giving an invalid syntax error message. I tried running the command<br \/>\ninside the command prompt as an admin.<\/p>\n<p>Even adding &#8220;&#8221; does not help. For eg.REG ADD &#8220;HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Group Policy Objects\\{A711A0A8-6020-4FB1-A477-4E550E2FBE76}Machine\\Software\\Policies\\Microsoft\\Windows\\DeviceInstall\\Restrictions \/v AllowAdminInstall \/t REG_DWORD \/d 1&#8221; adds a subkey on the left hand side named \/v AllowAdminInstall \/t REG_DWORD \/d 1 instead of creating a value named AllowAdminInstall on the right hand side of the regedit window.<\/p>\n<p>Please help<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1},"question-category":[55],"question_tags":[],"class_list":["post-1894","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/1894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=1894"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=1894"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=1894"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}