The ability to preview PowerShell (.ps1) scripts from Window’s File Explorer is not enabled by default, or so it seems. A quick one line PowerShell command fixes that in a jiffy!
- Right click on PowerShell and select to “run as administrator”
- Then copy and paste the following:
That’s it! Open up File Explorer and you’ll now be able to preview PowerShell scripts!
P.S. This was tested on Windows 10
Leave a Reply