Link to home
Start Free TrialLog in
Avatar of drlargepants
drlargepants

asked on

How to list all computers in a given active directory site

Is there an easy way of showing all the computers currently in each active directory site within a domain ?
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


It's not amazingly easy, you have to grab the list of subnets and do a bit of IP math to figure out if each computer is part of that subnet (typically based on a lookup of a name in DNS).

You have a lot of them?

Chris
Avatar of drlargepants
drlargepants

ASKER

A couple of 100 ?!  Its from an NT 4 migration, so ideally we need to know what is where and then create an OU for each site.

Do you have a list of your IP ranges (network address and subnet mask)? And a list of the computers?

Chris
Yeah can get that easy enough from angryip

Then it's not so hard to do, I have a pile of VbScript subroutines for doing IP math and have done this kind of operation before for a much bigger domain.

It's reliant on being able to resolve the computer names to IP addresses, but I guess your infrastructure already allows that?

Chris
yeah DNS is good to go :)
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial