There is such a script:

Get-ADUser -Filter {Name -like ' Петров Иван Иванович'} -Properties name,whenCreated, extensionAttribute4 , extensionAttribute5 | Select name,extensionAttribute4,extensionAttribute5, whenCreated | Export-CSV c:\ps\user_AD_02.csv -Append -Encoding UTF8 

This is one user. How to make a list of the file (about 2000 names and from different domains, two domains) can not figure it out. Maybe there is a ready-made solution?

  • And where is the example of the file from which the data is taken? No one knows what he is, what is his structure, right? - greg zakharov
  • yes, I forgot to tighten, the file looks like this: this is the ssv on each line of the full name and such lines are 2800 Abdulin Eric Y. Abdulova Evgenia Abriev Vadim Aytkalievich - dimandv
  • Please edit your question in such a way that a small fragment of csv is given in the question itself, and explain to the account of the domains where they come from. - greg zakharov

0