Locked myself out of Group Policy Management with no access to regedit
You can use this powershell command to delete the RestrictToPermittedSnapins
registry value:
Remove-ItemProperty HKCU:\SOFTWARE\Policies\Microsoft\MMC -Name RestrictToPermittedSnapins
Then, do not reboot, open the group policy editor again and revert your change.