Open the Forest Recovery console, and open a project that contains DCs you want to set the DSRM password on.
Navigate to Tools > Manage > Forest recovery Agents or DCs.
Wait for the status of the agents to load, and then select all DCs you want to change the DSRM password on, click "More" on the top toolbar and then "Reset DSRM Password".