February 19th, 2014

PowerTip: Use PowerShell to Find User Profile Path

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find the user profile path.

Hey, Scripting Guy! Question How can I easily get information about the folder and path to the profile for a currently signed-in user?

Hey, Scripting Guy! Answer Use the Env: PowerShell drive, and select the UserProfile environmental variable:

$env:USERPROFILE

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