top of page

PowerShell - Define Domain Replication Topology with Site names and Subnet info

  • Writer: Jon Boyette
    Jon Boyette
  • Jan 10, 2022
  • 1 min read

Save as a replication.ps1 to run against your domain, add DC=Domain, DC=COM of your domain to run to screen output


## Script to gather information about Replication Topology ##


## Define Objects ##


$replreport = New-Object PSObject -Property @{


Domain = $null


}


## Find Domain Information ##


$replreport.Domain = (Get-ADDomain).DNSroot


## List down the AD sites in the Domain ##


$a = (Get-ADReplicationSite -Filter *)


Write-Host "########" $replreport.Domain "Domain AD Sites" "########"


$a | Format-Table Description,Name -AutoSize


## List down Replication Site link Information ##


$b = (Get-ADReplicationSiteLink -Filter *)


Write-Host "########" $replreport.Domain "Domain AD Replication SiteLink Information" "########"


$b | Format-Table Name,Cost,ReplicationFrequencyInMinutes -AutoSize


## List down SiteLink Bridge Information ##


$c = (Get-ADReplicationSiteLinkBridge -Filter *)


Write-Host "########" $replreport.Domain "Domain AD SiteLink Bridge Information" "########"


$c | select Name,SiteLinksIncluded | Format-List


## List down Subnet Information ##


$d = (Get-ADReplicationSubnet -Filter * | select Name,Site)


Write-Host "########" $replreport.Domain "Domain Subnet Information" "########"


$d | Format-Table Name,Site -AutoSize


## List down Prefered BridgeHead Servers ##


$e = ([adsi]"LDAP://CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=DOMAIN,DC=COM").bridgeheadServerListBL


Write-Host "########" $replreport.Domain "Domain Prefered BridgeHead Servers" "########"


$e


## End of the Script ##


 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page