{"id":143,"date":"2010-08-11T12:36:11","date_gmt":"2010-08-11T16:36:11","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=143"},"modified":"2010-08-11T12:36:11","modified_gmt":"2010-08-11T16:36:11","slug":"active-directory-find-recent-no_client_site-subnets","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/active-directory-find-recent-no_client_site-subnets\/","title":{"rendered":"Active Directory: Find recent NO_CLIENT_SITE subnets"},"content":{"rendered":"<p>From time to time I try to verify that all of my subnet boundaries are properly defined in AD Sites and Services.  At some locations this is a little more challenging &#8212; especially when a site has many domain controllers.  I recently threw together this PowerShell script to look at a site with over a dozen DCs:<\/p>\n<pre>\r\nForeach ($server in get-content servers.txt) {Tail -10 \\\\$server\\admin$\\debug\\netlogon.log | %{\"$server,$_\"}}\r\n<\/pre>\n<p>I had a file (servers.txt) that contained the name of each domain controller on a separate line.  I ran the script using an Enterprise Admin account as it has permissions to the admin$ on each DC.  <\/p>\n<p>If you wanted to get really creative, you could add some select logic to get a list of all domain controllers.  The get-date cmdlet could even compare the date format listed in the netlogon.log (MM-dd) and only give you the current days events.  Throw in a scheduled task and now you could really be on top of this \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From time to time I try to verify that all of my subnet boundaries are properly defined in AD Sites and Services. At some locations this is a little more challenging &#8212; especially when a site has many domain controllers. &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/active-directory-find-recent-no_client_site-subnets\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-scripting"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}