Nice script that will export users, devices, RG’s etc to Excel.

http://y0av.me/2014/12/08/lyncusersanddevices/