Run with PowerShell missing from context menu



 When working with PowerShell scripts, the most likely way you will run them is by right clicking on the PS1 file and selecting "Run with PowerShell", however if you've discovered that the option is missing from your context menu then this guide will hopefully help you to get that option back.

The most likely cause of the "Run with PowerShell" option being removed from the context menu is that the file associations for PS1 files have been changed to another program, but don't worry this is super-easy to fix. Follow the step-by-step guide below to add the option back on a Windows 10 computer.

Firstly, right click on your PS1 file and then select "open with" and "choose another app"


Next you will want to select Notepad from the app selection window, this will set Notepad as the default application for PS1 files, before clicking OK make sure you tick the box "Always use this app to open . ps1 files" to save the defaults.


After clicking OK in the app selection dialogue box you should now have the option in your context menu to "Run with PowerShell" on PS1 files.

Was this helpful?

Yes No


Comments