Skip to content

Latest commit

 

History

History
99 lines (73 loc) · 1.81 KB

Remove-YubikeyOTP.md

File metadata and controls

99 lines (73 loc) · 1.81 KB

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

Remove-YubikeyOTP

SYNOPSIS

Remove YubiKey OTP slot.

SYNTAX

Remove-YubikeyOTP -Slot <Slot> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Remove the OTP configuration from a slot on the Yubikey

EXAMPLES

Example 1

PS C:\> Remove-YubikeyOTP -Slot 1

Removes the OTP configuration from slot 1 (Short press)

Example 2

PS C:\> $Slot = [Yubico.YubiKey.Otp.Slot]::ShortPress
PS C:\> Remove-YubikeyOTP -Slot $Slot

Removes the OTP configuration from slot 1 (Short press)

PARAMETERS

-Slot

Yubikey OTP Slot

Type: Slot
Parameter Sets: (All)
Aliases:
Accepted values: None, ShortPress, LongPress

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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