I'm looking into an issue where employees that have already had their accounts decommissioned in Active Directory are displaying in our new starters and birthday web parts after they have left the company.
I believe that this holds the answer: http://technet.microsoft.com/en-us/library/ff681014(v=office.15).aspx#disabledUsers
Specifically, using the following:
$upa = Get-spserviceapplication <identity> Set-SPProfileServiceApplication $upa -GetNonImportedObjects $true Set-SPProfileServiceApplication $upa -PurgeNonImportedObjects $true
However I don't know how to find the GUID of the User Profile Service - how do I go about this?