![](https://hashmat00.com/wp-content/uploads/2018/06/Regkey.jpg)
Today i had a task where i need to add a registry key to into registry using the OSD task sequence.
We want to add a value name “MaxByetesReboots” with value Data”0″ into “HKLM\Software\Credant\DecryptAgen”.
From Task sequence, add a Run a Command step, then add these settings
cmd /c reg add “HKLM\Software\Credant\DecryptAgent” /v MaxBytesReboot /t REG_DWORD /d 0 /f
Value Name: MaxbytesReboot
Value Data: 0