Get-ADUser -SearchBase "OU=Path,OU=To,OU=OrgUnit,DC=domain,DC=com" -Filter -Properties HomeDirectory
Use the -filter
and -Properties
parameters to include the HomeDirectory
property. Adjust the path to your valid location, same goed for the
-SearchBase
parameter.