{"id":7115,"date":"2023-06-22T06:02:10","date_gmt":"2023-06-22T06:02:10","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7115"},"modified":"2023-06-22T06:02:13","modified_gmt":"2023-06-22T06:02:13","slug":"powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members","title":{"rendered":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\"># disableUsers.ps1  \r\n# Set msDS-LogonTimeSyncInterval (days) to a sane number.  By\r\n# default lastLogonDate only replicates between DCs every 9-14 \r\n# days unless this attribute is set to a shorter interval.\r\n \r\n# Also, make sure to create the EventLog source before running, or\r\n# comment out the Write-EventLog lines if no event logging is\r\n# needed.  Only needed once on each machine running this script.\r\n# New-EventLog -LogName Application -Source \"DisableUsers.ps1\"\r\n \r\n# Remove \"-WhatIf\"s before putting into production.\r\n \r\nImport-Module ActiveDirectory\r\n \r\n$donotdisableaccount = \"da.administrator\"\r\n$inactiveDays = 45\r\n$neverLoggedInDays = 45\r\n$disableDaysInactive=(Get-Date).AddDays(-($inactiveDays))\r\n$disableDaysNeverLoggedIn=(Get-Date).AddDays(-($neverLoggedInDays))\r\n \r\n# Identify and disable Domain Admin who have not logged in in x days\r\n \r\n$disableInActiveDomainAdmins = Get-ADGroupMember 'Domain Admins' | Where-Object {$_.objectClass -eq \"user\" -and $_.SamAccountName  -notlike $donotdisableaccount}  | Get-ADUser -Properties lastLogonDate, whenCreated, distinguishedName | Where-Object { $_.Enabled -eq 'True' -and $_.lastLogonDate -lt $inactiveDays -and ($_.lastLogonDate -ne $NULL)} \r\n\r\n\r\n $disableInActiveDomainAdmins | ForEach-Object {\r\n#what if\r\n#  Disable-ADAccount $_ -WhatIf\r\n#no what if\r\n   Disable-ADAccount $_\r\n   Write-EventLog -Source \"DisableUsers.ps1\" -EventId 9090 -LogName Application -Message \"Attempted to disable user $_ because the last login was more than $inactiveDays ago.\"\r\n   }\r\n\r\n$disableInActiveEnterpriseAdmins = Get-ADGroupMember 'Enterprise Admins' | Where-Object {$_.objectClass -eq \"user\" -and $_.SamAccountName  -notlike $donotdisableaccount}  | Get-ADUser -Properties lastLogonDate, whenCreated, distinguishedName | Where-Object { $_.Enabled -eq 'True' -and $_.lastLogonDate -lt $inactiveDays -and ($_.lastLogonDate -ne $NULL)} \r\n\r\n $disableInActiveEnterpriseAdmins | ForEach-Object {\r\n#what if\r\n#   Disable-ADAccount $_ -WhatIf\r\n#no what if\r\n   Disable-ADAccount $_\r\n   Write-EventLog -Source \"DisableUsers.ps1\" -EventId 9090 -LogName Application -Message \"Attempted to disable user $_ because the last login was more than $inactiveDays ago.\"\r\n   }\r\n\r\n# Identify and disable users who were created x days ago and never logged in.\r\n \r\n$disableNeverLoggedInEnterpriseAdmins = Get-ADGroupMember 'Enterprise Admins' | Where-Object {$_.objectClass -eq \"user\" -and $_.SamAccountName  -notlike $donotdisableaccount}  | Get-ADUser -Properties lastLogonDate, whenCreated, distinguishedName | Where-Object { $_.Enabled -eq 'True' -and ($_.whenCreated -lt $disableDaysNeverLoggedIn) -and (-not ($_.lastLogonDate -ne $NULL))} \r\n\r\n$disableNeverLoggedInEnterpriseAdmins | ForEach-Object {\r\n#what if\r\n   #Disable-ADAccount $_ -WhatIf\r\n#no what if\r\n   Disable-ADAccount $_\r\n   Write-EventLog -Source \"DisableUsers.ps1\" -EventId 9091 -LogName Application -Message \"Attempted to disable user $_ because user has never logged in and $neverLoggedInDays days have passed.\"\r\n   }\r\n\r\n$disableNeverLoggedInDomainAdmins = Get-ADGroupMember 'Domain Admins' | Where-Object {$_.objectClass -eq \"user\" -and $_.SamAccountName  -notlike $donotdisableaccount}  | Get-ADUser -Properties lastLogonDate, whenCreated, distinguishedName | Where-Object { $_.Enabled -eq 'True' -and ($_.whenCreated -lt $disableDaysNeverLoggedIn) -and (-not ($_.lastLogonDate -ne $NULL))} \r\n\r\n$disableNeverLoggedInDomainAdmins | ForEach-Object {\r\n#what if\r\n   #Disable-ADAccount $_ -WhatIf\r\n#no what if\r\n   Disable-ADAccount $_\r\n   Write-EventLog -Source \"DisableUsers.ps1\" -EventId 9091 -LogName Application -Message \"Attempted to disable user $_ because user has never logged in and $neverLoggedInDays days have passed.\"\r\n   }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7115","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-06-22T06:02:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-06-22T06:02:13+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#article\",\"name\":\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com\",\"headline\":\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2023-06-22T06:02:10+00:00\",\"dateModified\":\"2023-06-22T06:02:13+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#listItem\",\"name\":\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#listItem\",\"position\":3,\"name\":\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members\",\"name\":\"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com\",\"description\":\"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2023-06-22T06:02:10+00:00\",\"dateModified\":\"2023-06-22T06:02:13+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com","description":"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #","canonical_url":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#article","name":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com","headline":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2023-06-22T06:02:10+00:00","dateModified":"2023-06-22T06:02:13+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#listItem","name":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#listItem","position":3,"name":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#webpage","url":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members","name":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com","description":"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2023-06-22T06:02:10+00:00","dateModified":"2023-06-22T06:02:13+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com","og:description":"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #","og:url":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members","article:published_time":"2023-06-22T06:02:10+00:00","article:modified_time":"2023-06-22T06:02:13+00:00","twitter:card":"summary","twitter:title":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members | Welcome to Pariswells.com","twitter:description":"# disableUsers.ps1 # Set msDS-LogonTimeSyncInterval (days) to a sane number. By # default lastLogonDate only replicates between DCs every 9-14 # days unless this attribute is set to a shorter interval. # Also, make sure to create the EventLog source before running, or # comment out the Write-EventLog lines if no event logging is #"},"aioseo_meta_data":{"post_id":"7115","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-06-22 05:59:25","updated":"2023-06-22 06:17:13","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Powershell Script to Disable inactive Domain Admin and Enterprise Admin Group Members","link":"https:\/\/pariswells.com\/blog\/research\/powershell-script-to-disable-inactive-domain-admin-and-enterprise-admin-group-members"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7115"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7115\/revisions"}],"predecessor-version":[{"id":7116,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7115\/revisions\/7116"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}