Link to home
Start Free TrialLog in
Avatar of datacomsmt
datacomsmtFlag for Australia

asked on

Powershell/VB Script to list logon server for all computers in a site

Hi,

We have a windows AD Domain (DFL Windows Server 2008) need a way to list all logon servers for workstations (XP, Vista and 7) in a specific site... even if not for a specific site that will be OK.

Thanks.
Avatar of Paul S
Paul S
Flag of United States of America image

Avatar of datacomsmt

ASKER

yes, but how would you configure this to list that for all logged on computers in a site??
OK, you want to get all Domain Controllers in your environment and check for which Site they authenticate clients, right?

If so, you can use for that DSQUERY/DSGET or NLTEST commands on your DC or workstation with Administrative Tools installed. Type in command-line

dsquery server -name * -limit 0 | dsget server -dnsname -site -isgc

or

nltest /dclist:<DNS-DOMAIN-NAME>
i.e.
nlteste /dclist:testenv.local

you will get all DCs in your environment and to which site they belong

Regards,
Krzysztof
iSiek, no mate, i need to check for currently connected clients and the domain controller they are authenticating to.
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
no answer
@ iSiek: I cannot access the link (comes upblank). May I get a copy of that script?