datacomsmt
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.
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.
ASKER
yes, but how would you configure this to list that for all logged on computers in a site??
Hi,
Check this link:
http://social.technet.microsoft.com/Forums/zh/ITCG/thread/5eb96de9-63b1-46a5-a17b-ce21e3c606d3
Good Luck
Regards,
Prem
Check this link:
http://social.technet.microsoft.com/Forums/zh/ITCG/thread/5eb96de9-63b1-46a5-a17b-ce21e3c606d3
Good Luck
Regards,
Prem
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
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
ASKER
iSiek, no mate, i need to check for currently connected clients and the domain controller they are authenticating to.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
no answer
@ iSiek: I cannot access the link (comes upblank). May I get a copy of that script?
or this
http://www.wisesoft.co.uk/scripts/vbscript_list_all_domain_controllers_in_the_domain.aspx