edutech4schools Posted February 24, 2011 Posted February 24, 2011 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
glennda Posted February 24, 2011 Posted February 24, 2011 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)
plexer Posted February 24, 2011 Posted February 24, 2011 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
DAZZD88 Posted February 24, 2011 Posted February 24, 2011 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 February 24, 2011 Posted February 24, 2011 dsquery computer domainroot -inactive 4 The 4 shows computers that have been inactive for 4 weeks or longer - change as you see fit.
edutech4schools Posted February 24, 2011 Author Posted February 24, 2011 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 2
RabbieBurns Posted February 24, 2011 Posted February 24, 2011 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)
Arthur Posted February 24, 2011 Posted February 24, 2011 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
DAZZD88 Posted February 24, 2011 Posted February 24, 2011 I will be keeping a close eye on your posts from now on, so I can repay the irritation. lol Oh crap!
MatthewL Posted February 24, 2011 Posted February 24, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now