EXCLUDING DISABLED ACCOUNTS FROM USER PROFILES IMPORT
To exclude the disabled accounts, you can edit filters of a Profile connection for a User Profile service application. The steps are below:
- Go to Central Administration site –> Manage Service Applications –> User Profiles service application –> Manage Synchronization Connections
- Click on the context menu next to the connection name, click on Edit Connection Filters
- Select from the dropdown menu userAccountControl, Bit on equals, 2, click Add
- Click OK
Now you’re ready to start a full synchronization to update profiles.