This PowerShell script automates the creation of a Lync user last logon report by pulling the most up to date user information from each defined Lync Front-End server and exports it to a CSV file.
— Read on gallery.technet.microsoft.com/Generate-Lync-user-last-afa68c72