When opening gpedit.msc you receive the following error:

MMC could not create the snap-in. The snap-in might not have been installed correctly.

gpedit-msc-error

Verify that "%SystemRoot%\System32\Wbem" is in the PATH environment variable.

echo %PATH%

Add the environment variable if it is missing and rerun gpedit.msc.