{"id":9860,"date":"2024-08-12T22:13:19","date_gmt":"2024-08-12T20:13:19","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9860"},"modified":"2024-08-14T07:44:34","modified_gmt":"2024-08-14T05:44:34","slug":"windows-check-to-which-internet-explorer-zone-a-file-or-path-belongs-to","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-check-to-which-internet-explorer-zone-a-file-or-path-belongs-to\/","title":{"rendered":"Windows: Check to which (Internet Explorer) Zone a file or path belongs to"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9860 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_9860')){$('.twoclick_social_bookmarks_post_9860').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Check%20to%20which%20%28Internet%20Explorer%29%20Zone%20a%20file%20or%20path%20belongs%20to\",\"the_excerpt\":\"Hi%2C%20%0D%0A%0D%0Athere%20is%20no%20GUI%20available%20to%20show%20to%20which%20Internet%20Explorer%20Zone%20a%20file%20belongs.%20%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"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-check-to-which-internet-explorer-zone-a-file-or-path-belongs-to\\\/\",\"post_id\":9860,\"post_title_referrer_track\":\"Windows%3A+Check+to+which+%28Internet+Explorer%29+Zone+a+file+or+path+belongs+to\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi, <\/p>\n<p>there is no GUI available to show to which Internet Explorer Zone a file belongs. <\/p>\n<p><!--more--> <\/p>\n<p>But there is a Powershell way to do so \ud83d\ude42<\/p>\n<p>Let use assume you have a script \\\\myFileServer.myDomain.org\\pubic\\myScript.ps1<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; &#x5B;System.Security.Policy.Zone]::CreateFromUrl(&quot;\\\\myFileServer.myDomain.org\\pubic\\myScript.ps1&quot;)\r\n\r\nSecurityZone\r\n------------\r\n    Intranet\r\n\r\n<\/pre>\n<p>These settings are set by the &#8220;Internet Control Panel&#8221; GUI. Start inetcpl.cpl => Security Tab<\/p>\n<p>or by Policy. 1= Intranet <\/p>\n<p>Computer Policy<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Get-ChildItem -Recurse &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap&quot;\r\nName                           Property\r\n----                           --------\r\nmyDomain.org                    * : 1\r\n\r\nPS D:\\&gt; Get-ItemProperty  &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMapKey\\&quot;\r\n*.myDomain.org : 1\r\n<\/pre>\n<p>User Policy<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Get-ChildItem -Recurse &quot;HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap&quot;\r\nName                           Property\r\n----                           --------\r\nmyDomain.org                    * : 1\r\n\r\nPS D:\\&gt; Get-ItemProperty  &quot;HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMapKey\\&quot;\r\n*.myDomain.org : 1\r\n<\/pre>\n<p>These are the pathes in the Group Policy Editor<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nComputer Configuration\/Administrative Templates\/Windows Components\/Internet Explorer\/Internet Control Panel\/Site to zone assignment list\r\nUser Configuration\/Administrative Templates\/Windows Components\/Internet Explorer\/Internet Control Panel\/Site to zone assignment list\r\n<\/pre>\n<p>If you have still problems running powershell scripts from that locations check if there is a zone identifier on a file <\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; get-item \\\\myServer.myDomain.org\\Share1\\myScript.ps1 -Stream *\r\n...\r\nStream     : Zone.Identifier\r\n...\r\n<\/pre>\n<p>To remove them<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; Unblock-file \\\\myServer.myDomain.org\\Share1\\myScript.ps1 \r\n<\/pre>\n<p>Michael<br \/>\n<!-- https:\/\/learn.microsoft.com\/en-us\/archive\/blogs\/fdcc\/iezoneanalyzer-v3-5-with-zone-map-viewer --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, there is no GUI available to show to which Internet Explorer Zone a file belongs.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2056,853,1042,249,1541,133,20,1804,1299],"class_list":["post-9860","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-alternate-data-stream","tag-determine","tag-explorer","tag-file","tag-internet","tag-powershell","tag-windows-2","tag-zone","tag-zone-identifier"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9860","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=9860"}],"version-history":[{"count":6,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9860\/revisions"}],"predecessor-version":[{"id":9872,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9860\/revisions\/9872"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}