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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I find out which dc the user logged on to?

Status
Not open for further replies.

aswdev

Programmer
Joined
Oct 27, 2006
Messages
1
Location
GB
I am developing an intranet site for a company with 9 offices across 1 domain with 9 DCs.

I need to find a way of determining which office the user is at whilst using the intranet so I can open word templates from their local domain controller, rather than creating lots of traffic across the WAN links

basically, I need the equivelant of the %logonserver% command in dos - but in asp.net c# (and hopefully without using the directoryservices namespace if poss!)

Can anyone help me out?

Thanks!
 
Do users move around? If so, look at your IP Addressing. You may find that you can automatically select the correct location from their IP Address.

Else, you could make it a property of the user.


Senior Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top