Hi,<\/p>\n
I need to do a script that will export me enabled users from specific OU and specific value of attribute Company (with some other attributes) and all groups beginning with name “A_ACC*” and if the user is a member of a group or no.<\/p>\n
It should look like this:<\/p>\n
GivenName <\/th>\n | Surname <\/th>\n | DisplayName <\/th>\n | Company <\/th>\n | Department <\/th>\n | SamAccountName <\/th>\n | PhysicalDeliveryOfficeName <\/th>\n | ‘GroupName1’ <\/th>\n | ‘GroupName1’ <\/th>\n | ‘GroupName3’ <\/th>\n | ETC… <\/th>\n<\/tr>\n<\/thead>\n | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GivenName1 <\/td>\n | Surname1 <\/td>\n | DisplayName1 <\/td>\n | Company1 <\/td>\n | Department1 <\/td>\n | SamAccountName1 <\/td>\n | PhysicalDeliveryOfficeName1 <\/td>\n | YES <\/td>\n | YES <\/td>\n | NO <\/td>\n | NO <\/td>\n<\/tr>\n | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
GivenName2 <\/td>\n | Surname2 <\/td>\n | DisplayName2 <\/td>\n | Company2 <\/td>\n | Department2 <\/td>\n | SamAccountName2 <\/td>\n | PhysicalDeliveryOfficeName2 <\/td>\n | NO <\/td>\n | YES <\/td>\n | NO <\/td>\n | <\/td>\n<\/tr>\n | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
GivenName3 <\/td>\n | Surname3 <\/td>\n | DisplayName3 <\/td>\n | Company3 <\/td>\n | Department3 <\/td>\n | SamAccountName3 <\/td>\n | PhysicalDeliveryOfficeName3 <\/td>\n | NO <\/td>\n | NO <\/td>\n | YES <\/td>\n | <\/td>\n<\/tr>\n | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
ETC… <\/td>\n | ETC… <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n | <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div> For now I am working with this:<\/p>\n
|