QKSTechTrainee
IS-IT--Management
Anyone know how to use a VBscript to gain access to a user in the active directory and make changes to their details?
I have been reading about LDAP: but seem to be missing some important bit of info because all my attempts fail - is there some other way to get at these?
Our Active Directory contains a number of user OU's, all contained within another OU (can I also access this as a container?) which is again held inside another OU. I don't seem to be able to phrase an LDAP: query that will traverse down this tree of OU's to the target OU containing user entries.
I think of the LDAP: query with this structure - domain\UsersRootOU\UsersSubSetOU\UsersSubSubSetOU\users - is this how it works?
I want to iterate through each user held within the OU's contained within UsersSubsetOU - capture some details, check these against a database (well spreadsheet actually, but nobody's perfect) capture other details from the spreadsheet and write these back out to the user details. So far I can get everything to work fine except for actually accessing the user account details. I am running this with full administrative priveleges on a Win2k Server Advanced system (workstations are XP Pro but that shouldn't matter, should it? Anyone know of any issues with this combo?) Having said that I'm not terribly sure about the modifications to the user accounts... ;-)
Anyway - thats it - sorry bout the mammoth post - bye
I have been reading about LDAP: but seem to be missing some important bit of info because all my attempts fail - is there some other way to get at these?
Our Active Directory contains a number of user OU's, all contained within another OU (can I also access this as a container?) which is again held inside another OU. I don't seem to be able to phrase an LDAP: query that will traverse down this tree of OU's to the target OU containing user entries.
I think of the LDAP: query with this structure - domain\UsersRootOU\UsersSubSetOU\UsersSubSubSetOU\users - is this how it works?
I want to iterate through each user held within the OU's contained within UsersSubsetOU - capture some details, check these against a database (well spreadsheet actually, but nobody's perfect) capture other details from the spreadsheet and write these back out to the user details. So far I can get everything to work fine except for actually accessing the user account details. I am running this with full administrative priveleges on a Win2k Server Advanced system (workstations are XP Pro but that shouldn't matter, should it? Anyone know of any issues with this combo?) Having said that I'm not terribly sure about the modifications to the user accounts... ;-)
Anyway - thats it - sorry bout the mammoth post - bye