Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

To find out the list of user profiles marked for deletion using powershell or C# for SharePoint 2010

$
0
0

I have Disabled the MysiteCleanup timer Job and disabled few user profile accounts in AD.  Then in SharePoint user profile service, ran the User profile full synchronise job.
 
I am able to find the marked for deletion records from the table (UserProfile_Full) in SQL server and also in the Manage User profile menu of the central admin under "Profile missing from import"
view.  But  am not getting these records, If I execute the  below powershell command.

$upa = Get-spserviceapplication -name 'User Profile Service Application'

Set-SPProfileServiceApplication $upa -GetNonImportedObjects $true
 
This command shows only the system account and not the accounts, which are marked for deletion .
 
Please suggest how to get this result.

Thanks & Regards,

Yoga


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>