If you have enough knowledge, you can do whatever you want. Can’t you?
By default, the PowerShell profile location is $HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
on Windows for the current user and current host.
The full path of the PowerShell profile is stored by the variable $PROFILE
. In the PowerShell session, it can be printed directly: