Link to home
Start Free TrialLog in
Avatar of Big-Brother
Big-Brother

asked on

I need a way to identify current IP's for a specified Active Directory OU.

Does anyone know of a way, or perhaps have a script, that will associate current IP's to machine numbers by Active Directory OU?
Avatar of LauraEHunterMVP
LauraEHunterMVP
Flag of United States of America image

IP addresses of client computers are not stored in Active Directory in any way.

Most times when this comes up, best option is to create a login script that captures the current IP and logs it to a centralized text file or (if you feel like doing some extra effort) a database.

It's a difficult thing to maintain on an ongoing basis any way you slice it, since if you're using DHCP for client IP addresses, what happens when a workstation's IP address changes?
Avatar of Daryl Ponting
One of the clever scripty people here might be able to produce a script that exports the machine names from an OU to a text file, then pings the machine names in the file and saves the results (which would be in the form of IP addresses) to an output file.
Avatar of Big-Brother
Big-Brother

ASKER

I don't need something that would have to be maintained.  It just needs to be able to take a snapshot of the current IP assignments of a specified OU so I can perform vulnerability and penetration tests on the machines within the OU.  When I need to do another test I would execute the script again so any IP address changes would be reflected.

I thought, perhaps, someone had already done this.  I have had script people tell me this shouldn't be very hard but no one has time to work on it.  
ASKER CERTIFIED SOLUTION
Avatar of Jay_Jay70
Jay_Jay70
Flag of Australia 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
Forced accept.

Computer101
Community Support Moderator