Windows 10 has a neat feature which will automatically lock your PC if you leave its vicinity. With more and more people living in shared accommodation with roommates they can not necessarily trust, this feature will leave your data secure if you were to pop to the loo for example and forgot to lock your PC.
Read full article on MSPoweruser