Thursday, July 27, 2017

Force replication to all Windows Domain Controllers using powershell

Import-Module ActiveDirectory
$DCs = (Get-ADForest).Domains | %Get-ADDomainController -Filter * -Server $_ } | select HostName
foreach ($DC in $DCs)    {        repadmin /syncall $DC.HostName    }
Hope it helps!

No comments:

Post a Comment

Vmware NSX SSL creation 

Using OpenSSL for NSX Manager SSL import: Creates CSR and 4096 bit KEY Creating NSX 6.4.2 SSL    openssl req -out nsxcert.csr -newkey rsa:40...