0
votes

The question says it all. I want to learn and use powershell as my go to terminal in windows and I want powershell to open if I type Win+R followed by ps. Much like how cmd is used to open command prompt.

2

2 Answers

3
votes

You can create a symbolic link (similar to a shortcut) to Powershell with any name you want.

This will create one called ps.exe in the powershell folder, this folder is already listed in PATH so will enable you to run ps from the RUN box like you want.

mklink %SystemRoot%\system32\WindowsPowerShell\v1.0\ps.exe %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

Be sure to run the command in an elevated command prompt.

1
votes

The "default" command for opening PowerShell is powershell. If you want to make it ps, your best bet is to create a batch file named ps.bat containing the single line

@powershell %*

and place it in one of the directories named in your system PATH variable.