Getting Powershell Scripts to Show in the Windows Explorer Preview Pane

I wanted to share this tip about how to make Powershell scripts visible in the preview pane of Windows Explorer. A few sources tell you to go registry diving, but I prefer to have Powershell do the work for me.

This command will work on both Windows 7 and 8. Simply start up Powershell as Administrator and execute the following cmdlet:

Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.ps1 -Name PerceivedType -Value text

Comments (3) -

ludinom
ludinom
1/1/2014 4:06:04 PM #

Great! I was just looking through a directory full of PowerShell snippets, scripts, failed experiments, etc., and this will make it a lot easier for me to find what I'm looking for. And, of course, this technique can be generalized for other extensions. Incidentally, this blog post was the result for me when Googling "powershell preview pane". Thanks for the tip!

ludinom
ludinom
1/1/2014 4:07:34 PM #

Correction: "...was the *second* result...".

Sukienki
Sukienki
1/16/2014 8:41:44 AM #

Ne'er knew this, thanks  for letting me know.

Add comment

biuquote
  • Comment
  • Preview
Loading

Recent Comments

Comment RSS

Post History

<<  February 2018  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627281234
567891011

View posts in large calendar