Open the Run window (win+r), enter "Gpedit.msc" and press ENTER, as shown in the picture:
In the pop-up window, click "Computer Configuration-Admin Template--windows component" and find "Windows login Options" in the list on the right, as shown in the figure:
Open Windows login options and continue to choose to open "display information about previous logons during user logon" as shown in the figure:
Select Enabled in the new window and click OK to complete the setup as shown in the figure:
So when we log in we will show the details, and we will know if anyone has ever used the computer, as shown in the picture:
Through the above method we can through the login information very intuitive to know that they are not in the computer next to the computer is used, need to use this function of friends may wish to follow the above method to operate, I hope to help.