SharePoint: how delete all profiles in a particular OU

For my client, we have imported by error too many user profiles, so we needed to delete from the User Profile Application the user profiles in the wrong OUs.

Taken example from Delete all User Profiles in SharePoint 2010/2013 using PowerShell, we have created the following PowerShell script: DeleteUserProfilesInOU.ps1 (1.1KB)

Add comment