Unix's last command gives a list of logging-in and logging-out events. I'm looking for something which would give me the same information for Windows-10, preferably something which can generate a text file with the information, a Windows API would be the next best thing, a program which would allow me to look at the information without a way to further process it elsewhere would also work but be inconvenient.
I've administrator access if this is needed.