At a customer we had some disabled accounts which were not imported in the profile database but did have an MOSS profile. For whatever reason SharePoint did not deleted these profiles. The customer wanted to delete these profiles without removing all profiles.
To achieve this goal, I have created a PowerShell script.
How to use it:
- Download the PowerShell script
- Open it in a text editor like Notepad
- Change the <url> into the URL of the web application you would like to check
- Run the script