Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

how do I get just the homepath?

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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