PowerTip: Use PowerShell to Show Path to All Your Profiles

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to show the path to all your Windows PowerShell profiles.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see the path to all of my Windows PowerShell profiles—
          not only the current host or current user profile?

Hey, Scripting Guy! Answer Use the $profile automatic variable, pipe the results to the Format-List cmdlet,
          and then use the –force parameter to force it to show all paths:

$PROFILE | Format-List -Force

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   


    Leave a comment