Delete inactive profiles with Powershell RRS feed

  • Question

  • Hi,

    I need a powershell script which will search and delete all profiles inside "Profile Missing from Import" of MOSS 2007 SSP. I have seen http://sharepointpsscripts.codeplex.com/releases/view/21693 But it is not helpful as I need to delete all profiles under "Profile Missing from Import".  I need to men Its almost 40,000 users, hence bit difficult to delete manually. If someone can help me with a script, that will be good.

    Monday, February 17, 2014 11:58 AM

All replies

  • "Profiles Missing from Import" are removed hourly by the "My Site Cleanup" timer job. If you need to delete them immediately then you can manually start the My Site Cleanup Job.
    Wednesday, March 5, 2014 10:20 AM
  • If you want to delete such profiles and their my sites separately, user profiles missing from import can be deleted using a PS cmdlet. Ideal way would be to enable the My Site cleanup job which would take care of both these.

    Remove obsolete users and groups

    Inside the SharePoint 2010 My Site Cleanup Timer Job

    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

    Thursday, March 6, 2014 4:40 AM