I usually use the shortcut described here: How do I start PowerShell from Windows Explorer? to open a PS session in a specific folder. Just using powershell
to open the sessions
However is no longer working, every time I write powershell
on the address bar and hit enter it take me to the folder: C:\Users\MyUser\Documents\PowerShell
(I'm in a Windows 10 laptop)
It seems to be related only to this shortcut as I have tried a few other things and they work. List of things I have tried/checked already below:
powershell -noprofile
it work opening a PS session as expected- No, my
$Profile
file does not have anything to set the location of the PS Session. powershell.exe
works as expectedpowershell_ise
works as expected- going to
File --> Open Windows Powershell
works as expected - Checked my environment variables and nothing strange there either