1

I've imported extra containers from active directory like service accounts and disabled accounts and Number of User Profiles is 1539, I know the number of employees in my organization is about 1200, I tried to Edit synchronization connection and bring in ONLY the containers that I need and start full synchronization again, But it still shows 1539 for Number of User Profiles. How can I get rid of extra user profiles?

Thanks,

Thanks,

1

Use Set-SPProfileServiceApplication.

$sa = Get-SPServiceApplication | ?{$_.TypeName -match "Profile"}
Set-SPProfileServiceApplication -Identity $sa -PurgeNonImportedObjects $true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.