Hello all,
How would I go about working out which computers listed in AD have been removed from the school. I have about 100 pc listed in AD but only 45 onsite.
Thanks
Printable View
Hello all,
How would I go about working out which computers listed in AD have been removed from the school. I have about 100 pc listed in AD but only 45 onsite.
Thanks
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)
Turn them all on an create a script to ping them all based on the ad names, then dbl check the ones which fail the ping?
Ben
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.
The 4 shows computers that have been inactive for 4 weeks or longer - change as you see fit.Code:dsquery computer domainroot -inactive 4
Thanks all.
DAZZD88 - I will be keeping a close eye on your posts from now on, so I can repay the irritation. lolQuote:
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...
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..
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:Code:dsquery computer -inactive 8 -limit 0
(credit to here which I used back when I was going through this)Code:dsquery computer -inactive 8 -limit 0 | dsrm
box_l's method of moving the inactive computers to a different OU is a pretty good idea...
http://www.edugeek.net/forums/windows/54827-report-inactive-computers-active-directory.html#post548605
I use oldcmp and set it say for 90 days. Got a batch file which I get mine to report as a CSV and then I check it and manually delete.
+1 oldcmp