Active Directory Audit
- Published on
- -1 mins read
- Authors
- Name
- David Galiata
- @neoslashnet
$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
}