Set "Profile Sync" account permissions for SharePoint On-Premises in Active Directory via PowerShell
Here is a PowerShell script to add "Profile Sync" account in Active Directory to "Default Domain Context" and "Configuration Context"... The outcome is the same as you would add…