Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell script to replication of all Domain Controllers on all Sites

$
0
0

I'm look for a PowerShell script to forcereplication of all Domain Controllers on all Sites.

I found the one below on the Internet but it doesn't seem to work. It runs and says "SynchAll Finished with no errors" but doesn't replicate the AD changes.

If anybody can give me a script that works that would greatly appreciated.

Thanks

Powershell
Import-ModuleActiveDirectory$DCs=(Get-ADForest).Domains|%{Get-ADDomainController-Filter*-Server$_}|selectHostNameforeach($DCin$DCs){repadmin/syncall$DC.HostName}

Viewing all articles
Browse latest Browse all 15370

Trending Articles