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