If you’ve organized a Teams meeting for your lecture, you can save a record of who’s attended it.
Keep in mind that you’ll only be able to download the attendance report while the meeting is in progress and participants are still present.
Here’s how:
During the meeting, select Show participants, choose the “more options” ... menu, then select Download attendance list
The report will download as a .CSV file that can be opened in Excel. The .CSV file contains the name, join time, and leave time of all meeting attendees.