Switches for CodeBAdminCLI.exe

/add2fa: Adds a card serial as a second factor to AD. This is the command-line equivalent of using the LinkNFC2AD.exe tool.
/add2ad: Adds encrypted credentials to AD (with “Store to AD” enabled). This replaces the manual steps usually taken in LinkNFCCard.exe.
/add2fs: Creates encrypted softtoken. This replaces the manual steps usually taken in LinkNFCCard.exe.
/list2facards: Retrieves and displays all card serial numbers currently assigned as a second factor for a specific user.
/list2fa: Reverses the lookup to show which user is currently assigned to a specific card serial.
/deletecard: A cleanup command that removes card references from both the 2FA records and the credential tokens.

Paramater for CodeBAdminCLI.exe

/user <SamAccount>: The specific username you are managing.
/domain <DomainName>: The Logon Domain where the user resides.
/password <Password>: The user’s password (required specifically when using /add2ad to store credentials).
/cardserial <CardSerialNumber>: The unique identifier (UID) of the NFC card.
/pin <CardPIN>: The secure PIN to be assigned to the card for logon verification.
/action <1 or 2>: Lock screen or logoff on card removal.
/datafolder: The storage location of the generated token.

Examples:

1. Link a card serial to a user for two-factor authentication:
   CodeBAdminCLI.exe /add2fa /user stefan /domain CodeB /serial AAFFBBCC

2. Add/modify encrypted credential token to AD as usually done with LinkNFC2AD.exe with Store to AD enabled

   CodeBAdminCLI.exe /add2ad /user stefan /domain CodeB /password letmein /serial AAFFBBCC /pin:1234
   add another Card
   CodeBAdminCLI.exe /add2ad /user stefan /domain CodeB /password letmein /serial CCDDEEFF /pin:0155

3. List all 2FA serials for a given user 
   CodeBAdminCLI.exe /list2facards /user stefan /domain CodeB

4. List all user using a specific card as 2nd factor
   CodeBAdminCLI.exe /list2fa /serial AAFFBBFF

5. Remove all card-to-user associations: 
   CodeBAdminCLI.exe /deletecard /cardserial AAFFBBFF /user stefan