Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to find disabled Active Directory User accounts
  • mfa
    Microsoft Azure Multi-Factor Authentication (MFA) AWS/Azure/OpenShift
  • Featured image
    How to Disable or Uninstall OneDrive on Windows 10 and 11 Backup
  • Grammarly integration with Word on Mac
    Integrate Grammarly in Microsoft Word on Mac Network | Monitoring
  • ad
    Service and Network Port requirements for Active Directory Windows
  • dfeef
    How to automatically resolve errors associated with failed dependencies Linux
  • QueryBitLocker1
    Query Windows BitLocker status remotely Windows
  • Feature image Password protect a virtual hard disk
    Create a Password-Protected VHD Using BitLocker on Windows Windows
  • Edge browser
    Enable or disable Microsoft Edge from showing Web Content Windows

How to find disabled Active Directory User accounts

Posted on 19/03/202012/01/2024 Christian By Christian No Comments on How to find disabled Active Directory User accounts
find disabled Active Directory User accounts

When the need arises to query (search) for disabled users in Active Directory in very large environments where there are a lot of organization units etc., there are few ways to go about it. This process is relatively very easy to find using the Active Directory Administrative Center. In this article, we will learn How to find disabled Active Directory User accounts. Please see how to detect who disabled a user in Active Directory, andWhat Happens if You Turn Off Your Computer During an Update.

Also, see the Concept of Active Directory Computer Account, how to use the built-in Azure Active Directory Connect tool, and how to query a list of installed programs in Windows.

Disable AD Accounts

To demonstrate this, I will proceed to disable some users in my test lab as shown below.

Active Directory

This will let you know that the object has been disabled as shown below

disabled user accounts

Now we have some users deleted as shown below.

user account search

Note: To mitigate against this process in the future, it is best practice to have a container created and dedicated for housing disabled users only. below are some procedures to achieve this

Find Active Directory Disabled Account via PowerShell

This will run the below cmdlets to return disabled accounts. This will display the list of disabled users with other user account parameters (attributes) as shown in the image below.

Search-ADAccount -AccountDisabled
Active Directory

To return only the username of disabled users, run the following cmdlets as shown below.

Get-ADUser -Filter {Enabled -eq $false} | FT samAccountName
user account search

Common Queries

I will be demonstrating this using the common queries. Open the “Active Directory User and Computer” console as shown below.

Click on Tools and select Active Directory User and Computer

find disabled Active Directory User accounts

Click on “Find an object in Active Directory Domain Services”. Please see how to query, stop and delete a service in Windows

Under the Find drop-down menu, select “Common Queries”. Select Disabled account, and click on Find now as shown below

This will display a list of disabled accounts in your Active Directory environment as shown below.

Via Saved Queries

The below steps are used in displaying disabled users in the Active Directory environment.

Launch the Active Directory User and Computer Console. Right-click on “Saved Queries”. Click on New, and click on Query

This will open the “New Query” properties window. Enter the Query name, and click on Define Query

Select Disabled Account and click on Ok

This will display a list of disabled accounts as shown below as a saved query.

Ensure you have a procedure in place to delete disabled accounts after a certain period in order not to have a messy Active Directory environment.

I hope you found this article useful in learning how to find disabled Active Directory User accounts. Please feel free to leave a comment below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Active Directory, Active Directory Accounts, Microsoft Windows, users, Windows Server 2016

Post navigation

Previous Post: Post OS installation: Configure the properties of Windows Server
Next Post: How to detect who disabled a user in Active Directory

Related Posts

  • Screenshot 2020 05 24 at 22.40.50
    The security database on the server does not have a computer account for this workstation trust relation [Part 1] Windows Server
  • Windows Server 2016 1 1
    Merits and demerits of Local System Account and Service Logon Account Windows Server
  • WhatsApp Image 2022 02 20 at 4
    How to use Postman for your POST Request Web Server
  • Add or remove features   fix dotnet framework issues
    Fix the request to add or remove features on the specified server failed Windows
  • Configure NFS on Windows Server
    How to install NFS Server on Windows Server Windows Server
  • Windows Server vNext
    What’s New? Install Windows Server 2025 on Beelink EQ12 PC Windows

More Related Articles

Screenshot 2020 05 24 at 22.40.50 The security database on the server does not have a computer account for this workstation trust relation [Part 1] Windows Server
Windows Server 2016 1 1 Merits and demerits of Local System Account and Service Logon Account Windows Server
WhatsApp Image 2022 02 20 at 4 How to use Postman for your POST Request Web Server
Add or remove features   fix dotnet framework issues Fix the request to add or remove features on the specified server failed Windows
Configure NFS on Windows Server How to install NFS Server on Windows Server Windows Server
Windows Server vNext What’s New? Install Windows Server 2025 on Beelink EQ12 PC Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • mfa
    Microsoft Azure Multi-Factor Authentication (MFA) AWS/Azure/OpenShift
  • Featured image
    How to Disable or Uninstall OneDrive on Windows 10 and 11 Backup
  • Grammarly integration with Word on Mac
    Integrate Grammarly in Microsoft Word on Mac Network | Monitoring
  • ad
    Service and Network Port requirements for Active Directory Windows
  • dfeef
    How to automatically resolve errors associated with failed dependencies Linux
  • QueryBitLocker1
    Query Windows BitLocker status remotely Windows
  • Feature image Password protect a virtual hard disk
    Create a Password-Protected VHD Using BitLocker on Windows Windows
  • Edge browser
    Enable or disable Microsoft Edge from showing Web Content Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.