PowerTip: Find User's Home Directory in PowerShell
Summary: Find the path to the current user's home directory in Windows PowerShell.
How can I easily find the current user's home directory for a script I am writing?
Use the $home automatic variable:
PS C:\> $HOME
0 comments