I want to pull user login, home directory... etc from AD using VB.NET
Someone told me to use System.DirectoryServices, but I am new to VB.NET
I can get the result by using dsquery..
dsquery * OU=Users,OU=xxx,OU=xxxx,DC=xxxx,DC=xxxx,DC=xxxx,DC=com -filter "(&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))" -attr sAMAccountName distinguishedName homeDirectory -limit 0
Kindly just write a code to extract user home directory
Thanks in advance
Someone told me to use System.DirectoryServices, but I am new to VB.NET
I can get the result by using dsquery..
dsquery * OU=Users,OU=xxx,OU=xxxx,DC=xxxx,DC=xxxx,DC=xxxx,DC=com -filter "(&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))" -attr sAMAccountName distinguishedName homeDirectory -limit 0
Kindly just write a code to extract user home directory
Thanks in advance