The issue I am having involves a user that uses a CAC to log in to a network. When the account is created, a 10-digit number printed on the CAC is associated with the users account and replaces their User Logon Name in ADUC.
This users number was incorrectly applied to another account, but with thousands of users its practically impossible to search everh one of them one by one.
I am attempting to use Powershell to search by UPN to identify the account that has the number associated incorrectly, but I am only finding syntax that set UPN or search by ADUser. Can anyone offer any assistance? Thanks in advance.