Published on

Active Directory Audit

Authors
$DomainControllers \= Get-ADDomainController \-Filter \*

ForEach ($DC in $DomainControllers.Name) {

Write-Host "Processing for "$DC \-ForegroundColor Green

If ($Mode \-eq "ExtraSuper") {

REPADMIN /kcc $DC

REPADMIN /syncall /A /e /q $DC

}