{"id":415,"date":"2012-05-06T16:55:00","date_gmt":"2012-05-06T16:55:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=415"},"modified":"2022-11-05T10:53:42","modified_gmt":"2022-11-05T10:53:42","slug":"active-directory-how-to-find-failed-logon-requests","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=415","title":{"rendered":"Active Directory &#8211; How to Find Failed Logon Requests"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">So to find any failed logon requests for a user you can use one of the two following XML queries, the first just shows all successes and failures for that user. The second shows just the failures only for that user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Open the event viewer, and click on the \u201cSecurity\u201d log on the left hand pane.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Once you can see the list of all the events, click on the \u201cFilter Current Log..\u201d button on the right hand pane.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Click on the \u201cXML\u201d tab and enter one of the following XML sections, and click \u201cOK\u201d, anything matching these XML query will then be shown.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;QueryList>\n&lt;Query Id=\"0\" Path=\"Security\">\n&lt;Select Path=\"Security\">*&#91;EventData&#91;Data&#91;@Name=\"TargetUserName\"] and (Data=\"Bert.Smith\")]]&lt;\/Select>\n&lt;\/Query>\n&lt;\/QueryList><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;QueryList>\n&lt;Query Id=\"0\" Path=\"Security\">\n&lt;Select Path=\"Security\">\n*&#91;System&#91;(EventID=4625)]]\nand\n*&#91;EventData&#91;Data&#91;@Name=\"TargetUserName\"] and (Data=\"Bert.Smith \")]]&lt;\/Select>\n&lt;\/Query>\n&lt;\/QueryList><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Where 4625 is the event ID of a failure audit, and \u201cBert.Smith\u201d is the username of the person trying to logon and failing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So if you find a user is persistently locking their account out, you might try this to find out if someone else is trying to logon from somewhere else, because within the event log is the originating IP address of the logon attempt. So if a user was using the IP address 192.168.1.10, but you are seeing logon attempts from the IP address 192.168.1.20, then you might assume there is someone trying to hack into the account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So to find any failed logon requests for a user you can use one of the two following XML queries, the first just shows all successes and failures for that user. The second shows just the failures only for that user. 1. Open the event viewer, and click on the \u201cSecurity\u201d log on the left &#8230; <a title=\"Active Directory &#8211; How to Find Failed Logon Requests\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=415\" aria-label=\"Read more about Active Directory &#8211; How to Find Failed Logon Requests\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,14],"tags":[],"class_list":["post-415","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=415"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/415\/revisions"}],"predecessor-version":[{"id":1509,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/415\/revisions\/1509"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}