$allDCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ } | export-csv -path C:\Dclist.csv -NoTypeInformation
A technical blog for IT professionals and system administrators covering Microsoft Active Directory, Microsoft Entra ID, Windows Server (2008–2025), PowerShell scripting, replication troubleshooting, identity management, and practical infrastructure tips. Learn how to automate, secure, and optimize enterprise environments with real-world tools and solutions.
Bixam Boda
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…