Get-Credential with a smart card

Welcome Forums General PowerShell Q&A Get-Credential with a smart card

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
1 year, 6 months ago.

  • Author
    Posts
  • #71140

    Participant
    Points: 23
    Rank: Member

    I work in a military environment that enforces 'smart card required' for all accounts admin or otherwise so I have multiple certificates on the smart card. I understand you can use a smart card with get-credential but the problem is it only has the first cert available when prompted. Is there a way to make all certs on the smart card available when prompted with get-credential? Am I able to manipulate the cert: provider to do this or is there an easier way?

  • #71177

    Keymaster
    Points: 1,673
    Helping HandTeam Member
    Rank: Community Hero

    Not unless you have a custom smart card provider that can do so. Get-Credential is a pretty simple beast. You'll need to roll something custom.

  • #71224

    Participant
    Points: 0
    Rank: Member

    You should be able to edit the prompt. Lets say you have a WA, OA, and IA certs on your token(in that order). You need to use the OA cert to join a computer to the Domain. The Prompt should should read "EDPIPI#.wa". now change it to "EDIPI.oa".

The topic ‘Get-Credential with a smart card’ is closed to new replies.