external help file: powershellYK.dll-Help.xml Module Name: powershellYK online version: schema: 2.0.0
Connect PIV module
Connect-YubikeyPIV -PIN <SecureString> [<CommonParameters>]
Connect-YubikeyPIV -ManagementKey <PSObject> -PIN <SecureString> [<CommonParameters>]
Connect-YubikeyPIV -ManagementKey <PSObject> [<CommonParameters>]
Connects the PIV module for the currently connected YubiKey, with PIN and Management Key as needed
PS C:\> Connect-YubikeyPIV
cmdlet Connect-YubikeyPIV at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
PIN: ******
Connect to PIV module with default Managment Key
PS C:\> $PIN = Read-Host -AsSecureString 'PIN'
PIN: ******
PS C:\> Connect-YubikeyPIV -PIN $PIN
Connect to PIV module with default Management key and a stored pin requested from the command line
PS C:\> $PIN = ConvertTo-SecureString -String "123456" -AsPlainText -Force
PS C:\> Connect-YubikeyPIV -PIN $PIN
Connect to PIV module with default Managementkey and a stored PIN requested constructed from code
ManagementKey
Type: PSObject
Parameter Sets: PIN&Management, Management
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
PIN
Type: SecureString
Parameter Sets: PIN, PIN&Management
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.