Search
Generic filters
Exact matches only
Filter by Custom Post Type

Finding the domain controller that authenticated you

Uncategorized
Jan 4, 2013
0

A question on my blog asked how do you know which domain controller you are running against when you search Active Directory. Unless you explicitly instruct your script to use a specific domain controller it will use the one to which you authenticated.

You can find the DC to which you authenticated with this simple function

function get-logonserver{
$env:LOGONSERVER -replace “\\”, “”
}

Recommend0 recommendationsPublished in Uncategorized

Comments are closed.

Skip to toolbar