{"id":3429,"date":"2015-12-17T21:20:40","date_gmt":"2015-12-17T20:20:40","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=3429"},"modified":"2016-03-18T06:59:07","modified_gmt":"2016-03-18T05:59:07","slug":"windows-resolve-policy-registry-keys-to-group-policy-editor-entries","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-resolve-policy-registry-keys-to-group-policy-editor-entries\/","title":{"rendered":"Windows: Resolve Policy Registry Keys to Group Policy Editor Entries (and vice versa)"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_3429 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_3429')){$('.twoclick_social_bookmarks_post_3429').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Resolve%20Policy%20Registry%20Keys%20to%20Group%20Policy%20Editor%20Entries%20%28and%20vice%20versa%29\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ain%20Windows%2C%20local%20group%20policies%20could%20applied%20through%20the%20Group%20Policy%20Editor%20or%20simply%20by%20setting%20the%20Registry%20Keys%20under%20HKEY_LOCAL_MACHINE%5CSoftware%5CPolicies%2C%20HKEY_LOCAL_MACHINE%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CPolicies%20and%20its%20equivalent%20in%20HKEY_CURRENT_USER.%0D%0A%0D%0AUnfortunataly%20when%20just%20set%20the%20Registry%20Keys%20this%20isn%27t%20shown%20in%20the%20GPO%20Editor%20and%20it%27s%20hard%20to%20find%20the%20equiva%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-resolve-policy-registry-keys-to-group-policy-editor-entries\\\/\",\"post_id\":3429,\"post_title_referrer_track\":\"Windows%3A+Resolve+Policy+Registry+Keys+to+Group+Policy+Editor+Entries+%28and+vice+versa%29\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>in Windows, local group policies could applied through the Group Policy Editor or simply by setting the Registry Keys under HKEY_LOCAL_MACHINE\\Software\\Policies, HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies and its equivalent in HKEY_CURRENT_USER.<\/p>\n<p>Unfortunataly when just set the Registry Keys this isn&#8217;t shown in the GPO Editor and it&#8217;s hard to find the equivalent section and setting there.<br \/>\n<!--more--><\/p>\n<p>This Script tries to resolve the Menu Position of a Policy in the GPO Editor by simply specifying it&#8217;s registry value. For example a key from Windows Update.<\/p>\n<pre><code>\r\nKey:       SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\r\nValuename: NoAutoUpdate \r\n<\/code><\/pre>\n<p>Just call<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS C:&gt; .\\FindPolicyFromRegistryKey.ps1 -v NoAutoUpdate -p SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\r\nRegistryKey       : SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU\r\nGPOEditPath       : Computer Configuration\/Administrative Templates\/Windows Components\/Windows Updat\r\n                     Updates\r\nRegistryValueName : NoAutoUpdate\r\nPolicyClass       : Machine\r\nCurrentValue      : 1\r\n<\/pre>\n<p>Note: This will not work for all Polices. The file with the definition must reside in %Systemroot%\\Policydefinition and complex structures may also not work. But for the most keys it works fine \ud83d\ude42<\/p>\n<p>Update 23.12.2015: Now the Script also supports a simple search for a keyword in all Policies. When setting the -s switch\u00a0it loads all policies and enter an interactive mode for searching<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS C:&gt; .\\FindPolicyFromRegistryKey.ps1 -s\r\n....\r\nWinLogon.admx......\r\nWinsrv.admx.\r\nWordWheel.admx.\r\nPolicies loaded\r\nQuery (#quit to exit) :\r\nQuery: Proxy\r\n Found keyword &quot;Proxy&quot; in Policy:\r\n  =&gt; \/Administrative Templates\/Windows Components\/Internet Explorer\/Internet C....\r\n  =&gt; \/Administrative Templates\/Windows Components\/Internet Explorer\/Internet C....\r\n  =&gt; \/Administrative Templates\/Windows Components\/Internet Explorer\/Internet C....\r\n  =&gt; User Configuration\/Administrative Templates\/Windows Components\/Internet E...\r\n\r\n<\/pre>\n<p>Update 1.0.9: In search mode the script shows also the registry key and the File where a policy is defined<br \/>\nComments are welcome!<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, in Windows, local group policies could applied through the Group Policy Editor or simply by setting the Registry Keys under HKEY_LOCAL_MACHINE\\Software\\Policies, HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies and its equivalent in HKEY_CURRENT_USER. Unfortunataly when just set the Registry Keys this isn&#8217;t shown in the GPO Editor and it&#8217;s hard to find the equivalent section and setting there.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[793,795,791,133,542,794,792,20],"class_list":["post-3429","post","type-post","status-publish","format-standard","hentry","category-windowsscripts","tag-group-policy-menu-path","tag-keyword","tag-policy-registry-keys","tag-powershell","tag-resolve","tag-search","tag-to-group-policy-editor-entries","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=3429"}],"version-history":[{"count":11,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3429\/revisions"}],"predecessor-version":[{"id":3537,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/3429\/revisions\/3537"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=3429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=3429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=3429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}