- The tool (LyncAddContacts) must be run on the Lync server from which you will export/import the data.
- You must be a member of the CSAdministrator security group to run this tool. This group has rights to export and import contact groups and contacts to all users.
- You have to copy the cscript.exe (C:\Windows\System32) and DBIMPEXP.EXE tool from the :\Support folder on the Lync Server 2010 installation media to the same folder where the LyncAddContacts tool will be run.
Open CMD, go to the path which you have copied all files mentioned in prerequisites.
In Lync Server 2010 Standard Edition
Following steps will show how to copy all contacts from user1 to user2. User1 should have all Lync contacts.
So we have to manually add all contacts to user1 🙁
After doing this we can export all contacts to another user or OU.
After doing this we can export all contacts to another user or OU.
Backup user data
CScript LyncAddContacts.vbs /backup backup.xml
Export Users Contacts
CScript LyncAddContacts.vbs user1@domain.com
(This command will backup user@domain.com’s contacts to Export.xml)
Copy all contacts to other user
CScript LyncAddContacts.vbs /import user2@domain.com
Copy all contacts to specific OU
CScript LyncAddContacts.vbs /import OU=OUName,DC=domain,DC=com
In Lync Server 2010 Enterprise Edition
Backup user data
Export Users Contacts
Copy all contacts to other user
Copy all contacts to specific OU
In Lync Server 2010 Enterprise Edition
Backup user data
CScript LyncAddContacts.vbs /backup backup.xml sqlsvrname.domain.com
Export Users Contacts
CScript LyncAddContacts.vbs user1@domain.com sqlsvrname.domain.com
(This command will backup user@domain.com’s contacts to Export.xml)
Copy all contacts to other user
CScript LyncAddContacts.vbs /import user2@domain.com sqlsvrname.domain.com
Copy all contacts to specific OU
CScript LyncAddContacts.vbs /import “OU=OUName,DC=domain,DC=com” sqlsvrname.domain.com \LyncServer
Leave a Reply