In Active Directory how do i get the number of joined computers and disjoined computers list?

Hana Wudu 0 Reputation points
2024-08-08T10:04:33.0566667+00:00

In Active Directory Disjoined computers from the domain are still on computer container. how do i know which computer has been disjoined and which one is actively being used. and i want to get the total numbers of computers that are join to the domain and computers that have been disjoined or formatted?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,559 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 37,106 Reputation points Microsoft Vendor
    2024-08-09T03:37:06.4166667+00:00

    Hi,

    The computer object will be disabled after the domain computer leaves the domain. You can get the disabled computers by running the PowerShell command below

    Get-ADComputer -Filter {Enabled -eq "False"}
    

    To get the domain computers , run

    Get-ADComputer -Filter {Enabled -eq "True"}
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.