I have this code:
$user = 'MyUser'
$getU = Get-ADUser $user -Properties homedirectory
It works but it returns a lot of data, DistinguishedName, GivenName, etc...etc.... and it returns HomeDirectory. It looks like this in the output
HomeDirectory : \\USR-FS02\MyUser$
how do I get just the \\USR-FS02\MyUser$ ???
mqh7