I have just installed the new Powershell 7.2 release from the Windows store on my Windows 10 computer.
When I run the application, the default starting path is C:\Windows\System32.
How can I change this default to to a C:\Users\<username> path, since I would like to avoid having to cd or Set-Location every time I use Powershell.
I looked at some other questions related to this topic, but wasn't sure if it still applies to the new release and didn't want to change anything that might mess up my settings and cause problems.
Steps validated in Powershell 5.1 environment:
PS C:\Users\alex> $PROFILE C:\Users\alex\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Set-Location C:\Users\alex
Hope this works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With