Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Getting homedirectory location from user in a variable

$
0
0

Hello,

I would like to get the value of homedirectory in a variable. What I have so far is:
$homedir = Get-AdUser -filter {name -eq "user"} -properties * | select HomeDirectory

$homedir is now c:\windows\system32\@{homedirectory=\server\share\homedirectoy}
$homedir should be \\server\share\homedirectory.

What should I do to get the correct location?

thanks


Viewing all articles
Browse latest Browse all 6937

Trending Articles