I've had more than a few requests for sample scripts for managing Lync 2010 for use with my Powershell MA.
Well, time finally allowed for me to anonymize some scripts from a recent project where I have set up management of Lync 2010 enabling/disabling for users. The scripts are very basic and only handles enabling and disabling of user for Lync. You may have to modify the scripts to fit your environment and, also, you have to do provisioning for the Lync PS MA for users that should be Lync-managed.
As a note on side, instead of using Synchronization Rules for provisioning, you could have a look at my provisioning framework as well which seems to be very popular for simple provisioning.
You can download the Lync scripts from the downloads page for my Powershell MA.
I'll be happy to get some feed back on the scripts but as always, please post in the FIM2010 forum for any assistance so that others may benefit.