• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

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?
0
Big-Brother
Asked:
Big-Brother
1 Solution
 
LauraEHunterMVPCommented:
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?
0
 
DarylxCommented:
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.
0
 
Big-BrotherAuthor Commented:
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.  
0
 
Jay_Jay70Commented:
i cant script so here is a link to a script that will ping all the machines in a list
http://myitforum.com/cs2/blogs/dhite/archive/2006/06/11/21093.aspx

use dsquery to ouput the names of all machines to a text file based on the OU and then run the script - two part process but it will work
dsquery user ou=OUName,DC=Domain,DC=com > c:\Filename.txt
0
 
Computer101Commented:
Forced accept.

Computer101
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now