Last active
February 16, 2024 00:41
-
-
Save ScriptingPro/a94a087286a73a29138c145e9db8948c to your computer and use it in GitHub Desktop.
Check Active Directory DNS SRV Records
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# validate srv records | |
$domain = 'contoso.com' | |
$sites = 'Dallas','Austin','Houston' | |
foreach($site in $sites){ | |
@" | |
_kerberos._udp.$domain | |
_kpasswd._udp.$domain | |
_gc._tcp.$domain | |
_kerberos._tcp.$domain | |
_kpasswd._tcp.$domain | |
_ldap._tcp.$domain | |
_gc._tcp.$site._sites.$domain | |
_kerberos._tcp.$site._sites.$domain | |
_ldap._tcp.$site._sites.$domain | |
_ldap._tcp.$site._sites.dc._msdcs.$domain | |
_kerberos._tcp.$site._sites.dc._msdcs.$domain | |
_ldap._tcp.dc._msdcs.$domain | |
_kerberos._tcp.dc._msdcs.$domain | |
"@ -split [System.Environment]::NewLine | %{ | |
Resolve-DnsName $_ -Type SRV | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment