Setting a password is a good way to secure your computer. However, some people may still try to guess the password to hack your computer. There is no need to fear though, since Windows can log login attempts so that you can see if anybody tried to log into your computer. You do need to do some setup to get it working, but once it’s done, you don’t have to do it again. This wikiHow will teach you how to set up logging, and how to view the logs once you have set it up.

StepsPart 1Part 1 of 2:Configuring Event Viewer


1Open Event Viewer. Press Ctrl+R, type eventvwr into the “Run” box, and then click OK.


2Click on “Custom Views”.


3Select “Create Custom View…” in the panel all the way to the right of the window.


4Click the drop-down arrow next to the “Event Logs” text-box.


5Expand the “Windows Logs” option.


6Click the checkbox next to “Security”.


7Select the text box that has “<All Event IDs>” prefilled. The prefilled text will disappear once you select it.


8Type in the appropriate Event ID. You can view 3 different types of events related to logins. You can view Successful logins, login failures, and logoffs. The IDs for each are listed below:X4624 – Successful login.4625 – Login Failure.4634 – Logoff.


9Click OK.


10Name and then type in a description for the Custom View. You should name it something descriptive, and make sure to enter a description of what it is. Then, click OK.If you don’t want anybody else on the computer to be able to see this custom view, uncheck the “All users” checkbox.


11Repeat these steps for each view that you want to create. If you are only interested in reviewing some events, then you can skip creating a new custom view for it.Part 2Part 2 of 2:Reviewing the Logs


1Open Event Viewer. Press Ctrl+R, type eventvwr into the “Run” box, and then click OK.


2Expand the “Custom Views” folder.


3Click on the logs that you want to view. Then, you can review the logs to see if anybody has been trying to hack your computer.


4Keep in mind that for successful logins, more than just you logging in will be logged. Logins from system services will also be logged. To tell if it was a human logging in, or a service, look at the “Login Type” value in the details pane. If the login type number is a 2, then it was a human logging in, but if it is any other number, then it was a system service.X