If you want to take an action on your Lync Server topology, decide whether it's a kinetic action or a non-kinetic action, then use the appropriate CsTopology cmdlet.
Three cheers for the user store, and the CsUserDatabaseState cmdlets. But please don't boo the haiku.