Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 1.73 KB

Get-YubikeyPIV.md

File metadata and controls

84 lines (62 loc) · 1.73 KB

external help file: powershellYK.dll-Help.xml Module Name: powershellYK online version: schema: 2.0.0

Get-YubikeyPIV

SYNOPSIS

Gets information about the PIV module and specific slots.

SYNTAX

Get-YubikeyPIV [-Slot <PIVSlot>] [<CommonParameters>]

DESCRIPTION

Gets information from both the yubikey and specific slots.

EXAMPLES

Example 1

PS C:\> Get-YubikeyPIV

PinRetriesLeft       : 8
PinRetries           : 8
PukRetriesLeft       : 4
PukRetries           : 4
CHUID                : 31-A5-EC-44-7F-1F-7E-C5-EA-4C-A8-3C-BB-28-F9-01
SlotsWithPrivateKeys : {154, 158}

Displays the number of retires left and total for PIN and PUK code. Aswell as Slots with private keys and the CHUID.

Example 2

PS C:\> Get-YubikeyPIV -Slot 0x9e

Slot        : 0x9E
KeyStatus   : Generated
Algorithm   : EccP384
PinPolicy   : Never
TouchPolicy : Never
Subjectname : CN=powershellYK
Issuer      : CN=powershellYK
NotBefore   : 2024-06-12 21:36:26
NotAfter    : 2034-06-12 21:36:26

Displays information about the PIV slot and any contained certificate

PARAMETERS

-Slot

Retrive a info from specific slot

Type: PIVSlot
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS