Whenever I run PowerShell as administrator, it starts in C:\WINDOWS\system32\WindowsPowerShell\v1.0. How do I make it start in my user's home directory instead? My $HOME has the expected value, i.e., C:\Users\<account>. Whenever I run PowerShell without administrative privileges it starts up in $HOME.
|
| |||||
feedback
|
|
If you always use a shortcut you can just add the arguments:
If you want this to always execute you can make a profile, to do this create the file (and missing folders on the path):
And place the cd command ( To allow the scripts execution on startup you need to change the execution policy to be less restrictive, run powershell as admin and execute:
Do this at your own risk of course. If you did you will always end up in your home folder on startup. | |||||||||
feedback
|