=> Start up and open Local Security Policy
=> From the left window pane expand Account Policies and select Account Lockout Policy option in it.
=> Now in the right window pane look for the Account lockout threshold option and double click on it.
=> A new window will be open and give the value after how many invalid password attempts you want to lock your computer.
=> Click on Apply button and a window will be open telling you Account will lock down for 30 minutes.
=> You can also change the time settings by clicking on the Reset account lockout counter according to your need.
=> Click OK.
That’s it. Now your computer will be temporally locked for some time that you had set in the settings when someone will enter wong password.
Enjoy :)