I Changed the PowerShell Profile Location

Bruce Wen
2 min readFeb 16, 2024

If you have enough knowledge, you can do whatever you want. Can’t you?

Photo by Nejc Soklič on Unsplash

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:

--

--