Jump to content

Recommended Posts

Posted
You can use third party apps (such as admanager plus) or if you do a search and then custom search you should be able to do a search for computers which havn't registered in 180 days (or 100 or 50 etc)
Posted

I'mm going to be the irritating person who points out that you should have an inventory of all machines with serial numbers, names, locations etc...

 

If you did, you could do a query to find all the computers in AD then export that list to a CSV file. Then you could do a lookup referencing your inventory to your AD export or your AD export to your inventory and the machines that dont't have a lookup are your dead machine accounts.

Guest TheLibrarian
Posted

dsquery computer domainroot -inactive 4

 

The 4 shows computers that have been inactive for 4 weeks or longer - change as you see fit.

Posted

Thanks all.

 

I'mm going to be the irritating person who points out that you should have an inventory of all machines with serial numbers, names, locations etc...

 

DAZZD88 - I will be keeping a close eye on your posts from now on, so I can repay the irritation. lol

  • Thanks 2
Posted

a similar dsquery command is what i was about to post and is by far the easiest way..

 

we have an active and up to date asset database of computer names and serial numbers, but it doesnt stop stale machine names being stuck in AD..

 

dsquery computer -inactive 8 -limit 0 

 

will find all computers in Active Directory that have not been logged into during the past 8 weeks and after reviewing this list to make sure these computers no longer exist on your network you can use the following command to find and delete them:

 

dsquery computer -inactive 8 -limit 0 | dsrm 

 

(credit to here which I used back when I was going through this)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...