{"id":2484,"date":"2016-03-29T13:11:01","date_gmt":"2016-03-29T07:41:01","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=2484"},"modified":"2019-05-12T02:55:35","modified_gmt":"2019-05-12T02:55:35","slug":"enable-ps1-preview-pane-ps1-powershell-file-explorer","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/enable-ps1-preview-pane-ps1-powershell-file-explorer\/","title":{"rendered":"How to Enable PowerShell (.PS1) Script Text Previews in Explorer Preview Pane?"},"content":{"rendered":"<p>By default File Explorer Preview pane displays text previews for .reg, .bat and .cmd file types, but not for .ps1 (PowerShell scripts). Here is a registry edit that enables text preview for .ps1 file type in File Explorer Preview pane.<!--more--><\/p>\n<p>Download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ps1_preview.zip\">ps1_preview.zip<\/a>, unzip and run the enclosed registry file.<\/p>\n<p><b>Note:<\/b> Make sure that the option <b>Show preview handlers in preview pane<\/b> is enabled in Folder Options, View tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" border=\"1\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ps1_preview.png\" width=\"599\" height=\"388\"><\/p>\n<h2>Registry File Contents<\/h2>\n<pre><code>Windows Registry Editor Version 5.00<br>\r\n[HKEY_CLASSES_ROOT\\.ps1\\ShellEx\\{8895b1c6-b41f-4c1c-a562-0d564250836f}]\r\n@=&quot;{1531d583-8375-4d3f-b5fb-d23bbd169f22}&quot;\r\n<br><\/code><\/pre>\n<h2>For Vbscript and JScript files<\/h2>\n<pre><code>Windows Registry Editor Version 5.00<br>\r\n[HKEY_CLASSES_ROOT\\.vbs\\ShellEx\\{8895b1c6-b41f-4c1c-a562-0d564250836f}]\r\n@=&quot;{1531d583-8375-4d3f-b5fb-d23bbd169f22}&quot;\r\n<br><\/code><\/pre>\n<pre><code>Windows Registry Editor Version 5.00<br>\r\n[HKEY_CLASSES_ROOT\\.js\\ShellEx\\{8895b1c6-b41f-4c1c-a562-0d564250836f}]\r\n@=&quot;{1531d583-8375-4d3f-b5fb-d23bbd169f22}&quot;\r\n<br><\/code><\/pre>\n<p>That&#8217;s it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default File Explorer Preview pane displays text previews for .reg, .bat and .cmd file types, but not for .ps1 (PowerShell scripts). Here is a registry edit that enables text preview for .ps1 file type in File Explorer Preview pane.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[441],"class_list":["post-2484","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3401,"url":"https:\/\/www.winhelponline.com\/blog\/fix-preview-not-available-thumbnail-media-files\/","url_meta":{"origin":2484,"position":0},"title":"Fix: No Video Thumbnails and No Preview Available for Video Files","author":"Ramesh","date":"July 4, 2016","format":false,"excerpt":"When you open a folder containing video files, no thumbnails may be displayed for your videos. Also, when you click a video file in File Explorer, the Preview pane may neither show the image preview nor the mini-player control for the chosen file. In some cases, No preview available message\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"reset video thumbnails and preview registry keys","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/codec-tweak-reset-thumbnail-previews-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":6431,"url":"https:\/\/www.winhelponline.com\/blog\/eml-file-preview-pane-explorer-windows\/","url_meta":{"origin":2484,"position":1},"title":"How to Enable Preview of .eml (Email Message) Files in Explorer","author":"Ramesh","date":"August 6, 2018","format":false,"excerpt":"Many users of Windows Mail or Windows Live Mail (part of Windows Live Essentials) used to backup individual emails and save them as .EML files. Since Windows Live Mail has been discontinued,\u00a0users are forced to use third-party mailers or even buy Microsoft's own produce, Microsoft Outlook. However, the preview pane\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":".eml file no preview available","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/08\/eml-preview-0.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":26634,"url":"https:\/\/www.winhelponline.com\/blog\/pdf-preview-directory-index-file-not-found\/","url_meta":{"origin":2484,"position":2},"title":"[Fix] PDF Preview Shows Directory Index or ERR_FILE_NOT_FOUND","author":"Ramesh","date":"April 29, 2022","format":false,"excerpt":"When you preview PDF files in File Explorer or Microsoft Outlook on your Windows 10 or Windows 11 computer, the preview pane may show the directory index of the current folder instead of previewing the PDF file's contents. In some cases, it shows the following error: File not found It\u2026","rel":"","context":"In &quot;Microsoft Edge&quot;","block_context":{"text":"Microsoft Edge","link":"https:\/\/www.winhelponline.com\/blog\/category\/edge\/"},"img":{"alt_text":"enablepreviewhandler - edge pdf preview registry value","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/04\/pdf-enablepreviewhandler-registry.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/04\/pdf-enablepreviewhandler-registry.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/04\/pdf-enablepreviewhandler-registry.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/04\/pdf-enablepreviewhandler-registry.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":48037,"url":"https:\/\/www.winhelponline.com\/blog\/new-rich-text-format-missing-windows-11\/","url_meta":{"origin":2484,"position":3},"title":"New \u201cRich Text Format\u201d (RTF) missing from Right-Click menu in Windows 11","author":"Ramesh","date":"May 22, 2023","format":false,"excerpt":"In Windows 11, the New menu does not list the \"Rich Text Format\" (often abbreviated RTF) entry by default. This happens even though you associate all .RTF files with WordPad instead of MS Word. (The Rich Text Format is a proprietary document file format developed by Microsoft for cross-platform document\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":309,"url":"https:\/\/www.winhelponline.com\/blog\/enable-or-disable-thumbnail-preview-for-pdf-files\/","url_meta":{"origin":2484,"position":4},"title":"[Fix] PDF Thumbnail and Preview Not Showing Up in File Explorer","author":"Ramesh","date":"May 29, 2008","format":false,"excerpt":"In your Windows computer, File Explorer may not display PDF thumbnails, and instead, show only the default icon assigned for PDF files. This might happen even if you have the option Always show icons, never thumbnails unchecked in the View tab of the Folder Options dialog. Also, in Microsoft Outlook\u2026","rel":"","context":"In &quot;Microsoft Edge&quot;","block_context":{"text":"Microsoft Edge","link":"https:\/\/www.winhelponline.com\/blog\/category\/edge\/"},"img":{"alt_text":"Edge PDF Preview Handler - Microsoft PDF Previewer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/edge-preview-handler.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":79925,"url":"https:\/\/www.winhelponline.com\/blog\/file-explorer-previews-blocked-harm-your-computer\/","url_meta":{"origin":2484,"position":5},"title":"File Explorer: The file you are attempting to preview could harm your computer","author":"Ramesh","date":"December 5, 2025","format":false,"excerpt":"After installing the October 15 (2025), cumulative update for Windows 11, File Explorer turns off the preview feature for files downloaded from the internet. After the October 2025 or a later Windows security update is installed, the File Explorer preview pane will display the following message: The file you are\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"Internet Explorer options - Trusted sites zone","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2025\/12\/ie-trusted-zone-sites.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/2484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=2484"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/2484\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=2484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=2484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=2484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}