Associate PS1 files with Windows Terminal

To run powershell files directly into Windows Terminal run this powershell script as administrator :

cmd /c assoc .ps1=PowerShellFileV
cmd /c ftype PowerShellFileV=wt.exe PowerShell.exe -NoExit -Command "& `"%1`""

⚠️ You have to keep in mind that if it is not available by default, it might be for a good reason. It might be dangerous to have this as you would be running malicious scripts without wanting to.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.