January 24th, 2014

PowerTip: Use PowerShell to Show Path to All Your Profiles

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.