Question : ldap Query on all users with a home directory

Would like to query active directory for all users with a home directory, excluding disabled users

Answer : ldap Query on all users with a home directory

adfind -default -bit -f "&(objectcategory=person)(objectclass=user)(homedirectory=*)" samaccountname description homedirectory -csv > c:\UsersHomeDirectory.csv

That will give you all users (enabled and disabled with the home directory defined in the profile tab)

Thanks

Mike

Random Solutions  
 
programming4us programming4us