On Powershell для импорта всех пользователей и их контактных данных в CSV:
Import-Module ActiveDirectory
Get-ADUser -filter * -Properties DisplayName, EmailAddress, Title, Department,OfficePhone,MobilePhone | Select Name,Title, EmailAddress, OfficePhone, MobilePhone, Department | Export-Csv contacts.csv
To have separate files (зависит от того, какой формат вы хотите):
Import-Module ActiveDirectory
$allusers = Get-ADUser -filter * | Select SamAccountName
foreach ($user in $allusers) {
$user = $user.SamAccountName
$contact = Get-ADUser $user -Properties DisplayName, EmailAddress, Title, Department,OfficePhone,MobilePhone | Select Name,Title, EmailAddress, OfficePhone, MobilePhone, Department
echo $contact > $contact.Name
}
That will put the contact details each to a separate file in the following format:
Name : John Doe
Title : Engineer
EmailAddress : jdoe@email.com
OfficePhone : 1234 1234
MobilePhone : 1234 1234
Department : Sample Department
Format as you like using echo if needed.
Вы можете экспортировать пользователей с помощью Powershell в CSV, а затем импортировать, используя Адресную книгу Windows.