Hi there,
As you are unable to access registry settings and group policies even log in as admin our only hope would be to restore the PC before the registry editing. If you are able to edit the registry from safe mode try the below steps.
-Navigate to File Explorer in the User Configuration.
-Double click on Prevent access to drives from My Computer.
-Select Not Configured.
-Click Apply and OK.
--If the reply is helpful, please Upvote and Accept it as an answer--