The Office Communications Server 2007 Resource Kit Tools featured a nifty tool called LCSAddContacts.
This WSF script allows you to add contacts to LCS or OCS (but not Lync Server) using WMI. I was hoping to see a version of this tool for Lync Server, but no such luck -- So I wrote one myself.
I'm surprised to find that there is no PowerShell cmdlet that allows you to add contact groups or contacts, and since there are no WMI classes for Lync Server anymore"- Jeff Guillet
http://www.expta.com/2011/01/introducing-lyncaddcontacts.html