# set-retries

## <mark style="color:red;">ykman piv</mark> access set-retries <mark style="color:red;">OPTIONS</mark> *PIN-RETRIES PUK-RETRIES*

<table><thead><tr><th width="284">Options</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;">-h, --help</mark></td><td>Show this message and exit.</td></tr><tr><td><mark style="color:red;">-f, --force</mark></td><td>Confirm the action without prompting.</td></tr><tr><td><mark style="color:red;">-m, --management-key TEXT</mark></td><td>Management key.</td></tr><tr><td><mark style="color:red;">-P, --pin TEXT</mark></td><td>PIN code.</td></tr></tbody></table>

<table><thead><tr><th width="291">Arguments</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:red;">PIN-RETRIES</mark></td><td>Set number of retries for PIN attempts.</td></tr><tr><td><mark style="color:red;">PUK-RETRIES</mark></td><td>Set number of retries for PUK attempts.</td></tr></tbody></table>

### <mark style="color:blue;">HELP</mark>

{% tabs %}
{% tab title="Help Command" %}

```properties
Usage: ykman.exe piv access set-retries [OPTIONS] PIN-RETRIES PUK-RETRIES

  Set the number of PIN and PUK retry attempts. NOTE: This will reset the PIN and PUK to their factory defaults.

Options:
  -m, --management-key TEXT  The management key.
  -P, --pin TEXT             PIN code.
  -f, --force                Confirm the action without prompting.
  -h, --help                 Show this message and exit.
```

{% endtab %}
{% endtabs %}

### <mark style="color:blue;">EXAMPLE</mark>

{% tabs %}
{% tab title="example 1" %}

```
ykman piv access set-retries 10 10
```

{% endtab %}
{% endtabs %}
