I never worked with asrock stuff, but I assume that it should be similar to supermicro or other vendors.
There are different ipmi tools that can be run from linux/windows to reset the ipmi back to factory settings and the admin password.
Edit: I mean from linux/windows as baremetal os and not vms (the os + the tools needs access to the bmc)