Solution of the not opening of gpedit.msc
This Problem is often created for various viruses, malwares, etc.
When we tried opening the editor by double clicking the gpedit.msc inside the system32 folder and we got the same error “Access is Denied”.
Open Registry Editor (regedit.exe) or type “regedit” in run without quote.
Now traverse to HKEY_CLASSES_ROOT\.msc and delete the registry entry on the right side.
After deleting it when you again type gpedit.msc in Run box, it will open an “Open with” dialog.
Now select the second option and browse to get a new option; browse to,
A new option Microsoft Management Console” will appear in the window.
Select this option and remember to check the box below to always run the command without doing this again and again. That's it, All .msc extensions will now open.