+ Post New Thread
Results 1 to 11 of 11
Windows Server 2000/2003 Thread, Find AD computers no longer in school in Technical; Hello all, How would I go about working out which computers listed in AD have been removed from the school. ...
  1. #1

    Join Date
    Apr 2010
    Posts
    1,835
    Thank Post
    62
    Thanked 161 Times in 133 Posts
    Rep Power
    64

    Find AD computers no longer in school

    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

  2. #2

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,714
    Thank Post
    269
    Thanked 1,116 Times in 1,012 Posts
    Rep Power
    345
    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)

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,997
    Thank Post
    590
    Thanked 1,500 Times in 1,346 Posts
    Rep Power
    398
    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

  4. #4
    DAZZD88's Avatar
    Join Date
    Apr 2009
    Location
    Sunderland, Tyne and Wear
    Posts
    788
    Thank Post
    163
    Thanked 77 Times in 66 Posts
    Rep Power
    47
    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.

  5. #5
    TheLibrarian
    Guest
    Code:
    dsquery computer domainroot -inactive 4
    The 4 shows computers that have been inactive for 4 weeks or longer - change as you see fit.

  6. 2 Thanks to TheLibrarian:

    BatchFile (1st March 2011), TheScarfedOne (24th February 2011)

  7. #6

    Join Date
    Apr 2010
    Posts
    1,835
    Thank Post
    62
    Thanked 161 Times in 133 Posts
    Rep Power
    64
    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

  8. 2 Thanks to edutech4schools:

    DAZZD88 (24th February 2011), Edu-IT (24th February 2011)

  9. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,476
    Thank Post
    1,305
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    198
    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..

    Code:
    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:

    Code:
    dsquery computer -inactive 8 -limit 0 | dsrm
    (credit to here which I used back when I was going through this)

  10. #8


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,141
    Thank Post
    204
    Thanked 2,398 Times in 1,774 Posts
    Rep Power
    705
    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

  11. #9
    DAZZD88's Avatar
    Join Date
    Apr 2009
    Location
    Sunderland, Tyne and Wear
    Posts
    788
    Thank Post
    163
    Thanked 77 Times in 66 Posts
    Rep Power
    47
    Quote Originally Posted by edutech4schools View Post
    I will be keeping a close eye on your posts from now on, so I can repay the irritation. lol
    Oh crap!

  12. #10

    Join Date
    Oct 2008
    Location
    Lincolnshire
    Posts
    2,060
    Thank Post
    11
    Thanked 206 Times in 200 Posts
    Rep Power
    63
    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.

  13. #11

    Join Date
    Dec 2007
    Location
    cumbria
    Posts
    180
    Thank Post
    7
    Thanked 43 Times in 39 Posts
    Rep Power
    24
    +1 oldcmp

SHARE:
+ Post New Thread

Similar Threads

  1. How can I find visiting ICT teaching to come to school each week?
    By ejane in forum London Grid for Learning (LGfL)
    Replies: 1
    Last Post: 22nd October 2010, 03:37 PM
  2. How could I find if a file exists on multiple computers?
    By reggiep in forum How do you do....it?
    Replies: 2
    Last Post: 13th September 2010, 11:12 AM
  3. Replies: 60
    Last Post: 4th March 2010, 06:30 AM
  4. [Pics] Making The School Day Longer
    By russdev in forum Jokes/Interweb Things
    Replies: 2
    Last Post: 30th March 2008, 02:53 AM
  5. Where do I look to find a job in a school in London area?
    By alena in forum Educational IT Jobs
    Replies: 2
    Last Post: 26th February 2008, 01:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •