Tips, tricks, and scripts for Admins on the run. Also this serves a a brainless repository for me when I know I'll need it later.
Showing posts with label Replicating Directory Changes in filtered set. Show all posts
Showing posts with label Replicating Directory Changes in filtered set. Show all posts
Tuesday, June 26, 2012
Replicating Directory Changes in filtered set
$Identity = "ENTERPRISE DOMAIN CONTROLLERS"
$RootDSE = [ADSI]"LDAP://RootDSE"
$DefaultNamingContext = $RootDse.defaultNamingContext
$ForestDNSZones = "DC=ForestDnsZones,$DefaultNamingContext"
$DOMAINDNSZones = "DC=ForestDnsZones,$DefaultNamingContext"
$UserPrincipal = New-Object Security.Principal.NTAccount("$Identity")
DSACLS "$ForestDNSZones" /G "$($UserPrincipal):CA;Replicating Directory Changes in Filtered Set"
DSACLS "$DomainDNSZones" /G "$($UserPrincipal):CA;Replicating Directory Changes in Filtered Set"
Subscribe to:
Posts (Atom)