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?