January 4th, 2013

PowerTip: Easily Find the Location of Current User Profile

Doctor Scripto
Scripter

Summary: Easily find the location of the Windows PowerShell current user current host profile.

Hey, Scripting Guy! Question How can I find the location of the current Windows PowerShell profile for your current host?

Hey, Scripting Guy! Answer Use the $profile automatic variable, as shown here:

13:25 C:\> $profile

C:\Users\ed.IAMMRED\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

 

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.

Feedback