The customers of my application run the applying on Laptops and that i require the application configurations to alter according to the position of the presently drenched in user. I would like the application to make use of one number of configurations when they're blocked to their HQ domain and various configurations when they're out roaming from the office.

How do i programmatically identify this?

You are able to send query into ActiveDirectory, as referred to here, with current user title

IPrincipal threadPrincipal = Thread.CurrentPrincipal;