Get-ObjectAcl -DistinguishedName "dc=dollarcorp,dc=moneycorp,dc=local" -ResolveGUIDs | ? {($_.IdentityReference -match "<username>") -and (($_.ObjectType -match 'replication') -or ($_.ActiveDirectoryRights -match 'GenericAll'))}
Add-ObjectAcl -TargetADSprefix âCN=AdminSDHolder,CN=Systemâ PrincipalSamAccountName <username> -Rights All -Verbose
Invoke-SDPropagator -showProgress -timeoutMinutes 1
#Before server 2008
Invoke-SDpropagator -taskname FixUpInheritance -timeoutMinutes 1 -showProgress -Verbose
Get-ObjectAcl -SamaccountName âDomain Adminsâ âResolveGUIDS | ?{$_.identityReference -match â<username>â}
Add-DomainGroupMember -Identity âDomain Adminsâ -Members <username> -Verbose
Net group "domain admins" sportless /add /domain
Set-DomainUserPassword -Identity <username> -AccountPassword (ConvertTo-SecureString "Password@123" -AsPlainText -F