Configuring User Profile Service and User Profile Synchronization Service via PowerShell

Here are some scripts to configure the UPS and UPSS via PowerShell.  You’ll need to fill in the blanks, of course.

And for the UPSS:

If you need to mask the password for the UPSS, you can use the below function.  You will need to perform a Get-Credential on the Farm User account, e.g.:

Change the line $profApp.SetSynchronizationMachine to:

Then add this function:

Leave a Reply