Step1. boot up NVR and Select here.
Step2. copy your Serial No. not RED selected corner.
like this "1620140821BBRR47336813WCVU"
P.S
Maybe your Serial Num like this....
"DS-7804N-SN1620140821BBRR47336813WCVU"
You need to try it.
Step3. Link here to gen your secure code.
ps. make sure you boot up systems time is current,
if not.
Please link to Internet got ntp server's date/time. (just boot up awhile.)
Step4. copy your secure code to RED selected corner.
done.
Hope this work for you.