Mark III Systems Blog

Powershell Profile Sharing for PowerShell 5 and Pwsh Core+

This article describes a simple technique using symbolic links to share Powershell and Pwsh profiles.

Goal:

Maintain a single profile script in Documents for Powershell and Pwsh

Solution:

Create a symbolic link to the Documents\WindowsPowershell target as Powershell

Open CMD prompt

Run the below command...

mklink /D %HOMEPATH%\Documents\PowerShell %HOMEPATH%\Documents\WindowsPowerShell

Cleanup any modules that aren't supported in Core.

Enjoy!