Hello all,
The issue I am having involves a user that uses a CAC to log in to a domain. 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 or change UPN or search by ADUser, the account name.
If I can query for the UPN itself and see all accounts associated with that UPN, I could identify the incorrect account and resolve the issue.
Can anyone offer any assistance? Thanks in advance.