{"id":307,"date":"2011-12-14T16:24:16","date_gmt":"2011-12-14T14:24:16","guid":{"rendered":"http:\/\/marwin.e-blog.cz\/?p=307"},"modified":"2011-12-19T00:02:01","modified_gmt":"2011-12-18T22:02:01","slug":"how-to-tell-if-lastlogontimestamp-is-in-sync","status":"publish","type":"post","link":"https:\/\/svobodma.cz\/?p=307","title":{"rendered":"How to tell if lastLogontimeStamp is in sync"},"content":{"rendered":"<p>1. Using repadmin to check the value of lastLogontimeStamp on all DC&#8217;s in a domain for one user:<\/p>\n<p>repadmin \/showattr * (or put name of DC server) \/attrs:lastLogontimeStamp<\/p>\n<p>Example:<\/p>\n<p>repadmin \/showattr * CN=user1,OU=accounting,DC=domain,dc=com \/attrs:lastLogontimeStamp<\/p>\n<p>2. Using repadmin to dump the lastLogontimeStamp for all users in a domain including users that have no data in the lastLogontimeStamp attribute:<\/p>\n<p>repadmin \/showattr * \/subtree \/filter:&#8220;(&amp;(objectCategory=Person)(objectClass=user))&#8220; \/attrs:lastLogontimeStamp<\/p>\n<p>3. Dump lastLogonTime stamp for users but only ones that have the attribute populated<\/p>\n<p>repadmin \/showattr * dc=domain,dc=com \/subtree \/filter:&#8220;((&amp;(lastLogontimeStamp=*)(objectCategory=Person)(objectClass=user)))&#8220; \/attrs:lastLogontimeStamp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Using repadmin to check the value of lastLogontimeStamp on all DC&#8217;s in a domain for one user: repadmin \/showattr * (or put name of DC server) \/attrs:lastLogontimeStamp Example: repadmin \/showattr * CN=user1,OU=accounting,DC=domain,dc=com \/attrs:lastLogontimeStamp 2. Using repadmin to dump the &hellip; <a href=\"https:\/\/svobodma.cz\/?p=307\">Cel\u00fd p\u0159\u00edsp\u011bvek <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-activedirectory"],"_links":{"self":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":4,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":430,"href":"https:\/\/svobodma.cz\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/430"}],"wp:attachment":[{"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svobodma.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}