I need help in getting OU attributes and User Attributes
in a single pass. What I am looking to do is write out a
file that contains the OU name and the sAMAccountName
from the user class.
Does anyone have any suggestions?
Thanks in Advance,
c) Bind to each user in the OU (enumerate the users in the OU)
d) For each user, get its SAMaccountName and output that to a file
I don't quite understand what you mean by "in a single pass" - you
will have to bind to both the OU and each of the users in the OU to
get the info.
Alternatively, you could try to do a search in the OU using the ADO
provider for ADSI to get just the attributes you want.
Fairly new to this and I need to modify a single attribute to all users
within a OU. Anyone have any sample code for doing this?