Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping Computer to a Site 1

Status
Not open for further replies.
Joined
Jul 13, 2004
Messages
427
Location
US
All,

I'm working on what i thought would be a simple interface for our engineers to find all servers in a given AD site. I'm writing this in C# (though any language will do) and I cannot seem to find any attribute of a computer account that actually links it to a given site. Is there a way to do this that doesn't involve something like this:

Find all Computers
Resolve DNS
Link IP Address to site address
Map site to server

I want to keep the search as simple as possible.

Thanks in advance!



~Intruder~
CEH, MCSA/MCSE 2000/2003

"The Less You Do, The Less Can Go Wrong" :)
 
This might give you some insight.

faq329-5908

I hope you find this post helpful.

Regards,

Mark
 
Thanks for the reply Mark. This is helpful in some circumstances, but not exactly what I'm looking for. Quite honestly, I've googled my brains out on this one and dug through the ADSI properties of computer accounts and don't see anything fitting other than mapping the IP Address back to the site that the subnet belongs to.

Any other leads would be helpful, but I guess i may be stuck going down this path.

Thanks!

~Intruder~
CEH, MCSA/MCSE 2000/2003

"The Less You Do, The Less Can Go Wrong" :)
 
Yea, there isn't anything that gets modified to specify where a particlar PC is located unless you were to organize the location by OU as well. you could then easily query AD for the OU to know what site a PC is in.

I hope you find this post helpful.

Regards,

Mark
 
ok, thought so. Thanks Mark.

~Intruder~
CEH, MCSA/MCSE 2000/2003

"The Less You Do, The Less Can Go Wrong" :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top