$allDCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ } | export-csv -path C:\Dclist.csv -NoTypeInformation
Check If SRV record is Resolved from any of DC so that will come to know Record is created in DNS for particular DC or Server. nslookup -q=SRV _…
nltest /dsgetdc:domain_name         Example : nltest /dsgetdc:bbn.com
repadmin /showobjmeta <NGUKDC8MDS004> " DN" Example: repadmin /showobjmeta DC1  "CN=BBN,OU=Service Account…
To clear DNS name cache you type in: IPConfig /FlushDNS     To clear NetBIOS name cache you type in: NBTStat –R     To clear Ker…
Get-ADObject -Filter {(isdeleted -eq $true) -and (name -ne "Deleted Objects")} -includeDeletedObjects -property * With date range \\ …
Get-ADDomainController -Filter * | Select Name, ipv4Address, OperatingSystem, site | Sort-Object -Property Name >C:\DC_Overview.txt Get list…