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.