Wednesday, June 13, 2018

PowerShellTip: Use PowerShell to Find User Profile Path

To easily get information about the folder and path to the profile for a currently signed-in user, use environmental variable UserProfile.

[PS]$env:UserProfile

This can be useful in scripts.

No comments:

Post a Comment