Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find User's Home Directory in PowerShell

$
0
0

Summary: Find the path to the current user's home directory in Windows PowerShell.

Hey, Scripting Guy! Question How can I easily find the current user's home directory for a script I am writing?

Hey, Scripting Guy! Answer Use the $home automatic variable:

PS C:\> $HOME


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>