I would like to move my default “My Documents\WindowsPowerShell” folder. However, when I try this, PowerShell of course can’t find $profile. Is there a file or something that I can edit to point PowerShell to a different startup folder?
I would like to move my default My Documents\WindowsPowerShell folder. However, when I try
Share
What I can suggest is that you dot source the file having the content of your profile in the file
$profile.AllUsersAllHosts$profile.AllUsersAllHostsis something likeC:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1Related question: Is it possible to change the default value of $profile to a new value?