It will depend on which brand the DVR is.
Typically it will require some form of contact with the manufacturer or an authorised partner.
In the case of Hikvision the following article will help
https://connectec.uk/blog/how-to-reset-the-password-of-a-hikvision-or-hilook-device
79 questions
71 answers
7 comments
25 users