r/PowerShell • • Aug 08 '18

TIL you can launch powershell from explorer

Today I learnt if you typed powershell in the explorer it will open up in the current directory of the explorer.

132 Upvotes

53 comments sorted by

View all comments

8

u/[deleted] Aug 08 '18

Alt, F, S, A - wait a sec, Alt-Y.

A little wonky at first but eventually it's a quick way to achieve the same thing.

Alt, F, S, R - for non-admin

4

u/ihaxr Aug 08 '18

You can just do ALT + F, R for non-admin... no need to manually navigate the submenu since the shortcut for "Open Windows PowerShell" is in both places--the main menu under Open New Window and the "S" submenu.

1

u/[deleted] Aug 08 '18

Oh - nice I clearly missed that. Thanks for the extra info!

4

u/robisodd Aug 08 '18

Also, if you don't have an Explorer window open you can press Window+x then i, or for admin powershell press Window+x then a

2

u/[deleted] Aug 08 '18

Nice - that is very helpful!

1

u/nvpqoieuwr Aug 08 '18

This opens git bash for me. mingw64. Now how to change it back...

0

u/[deleted] Aug 08 '18

[deleted]

1

u/[deleted] Aug 08 '18

I have powershell replacing the command prompt, maybe that has something to do with it. Also maybe try without having any files selected?

1

u/sevenillusions Aug 08 '18

how exactly did you do that? sounds neat af

2

u/[deleted] Aug 08 '18

There's an option in the Windows settings to allow that - I'm at work or I'd dig for it. I can let you know tonight after I get home, sorry!

1

u/[deleted] Aug 08 '18

Ooh, nice! Just Alt-FSA did it for me... what does the Alt-Y do?

1

u/Thomhandiir Aug 08 '18

It will press yes on the UAC prompt if there is one, at least I assume so, based on my test. :P

2

u/[deleted] Aug 08 '18

Ah, I see. We're using standard accounts here so I had to enter admin credentials.

1

u/[deleted] Aug 08 '18

Yep that's it!