system Restore rollback replaces the entire registry hives from a previous snapshot. This is a convenient option if your group membership was recently changed; System Restore would restore your previous settings.
In the Recovery Options, click System Restore.
You’ll be asked to choose a target Operating System. Choose the Operating System.
Click Next in the System Restore window.
Click Show more restore points check box (if available)
Select the appropriate restore point from the list based on the date when the system was working fine.
Click Next and click Finish.
reference:https://www.winhelponline.com/blog/locked-user-account-lost-admin-privileges-rescue/
Tip: This answer contains the content of a third-party website. Microsoft makes no representations about the content of these websites. We provide this content only for your convenience.
Hope this information can help you
Best wishes
Vicky