打开组策略(开始-运行-gpedit.msc)却出现选择打开方式的窗口,修复方法:最简单的就是从打开方式窗口中选择mmc.exe程序(可通过“浏览”,一般位置在C:\WINDOWS\system32\),并勾选“始终使用选择的程序打开这种文件”(除非你想下次再选一次),然后就可以正常打开组策略了。这种修复方法的前提是系统存在组策略(Windows XP Home没有带组策略,就不用试了),并且mmc.exe文件存在,没有被误删或破坏。
有关组策略打开方式关联的修复方法,还可以通过注册表,把下面的内容拷入一个文本文件,然后另存为.reg文件,再双击导入注册表:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\MSCFile]
@="Microsoft Common Console 文档"
"EditFlags"=dword:00100000
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,6d,00,6d,00,63,00,62,00,61,00,73,00,65,00,2e,00,64,00,6c,00,6c,\
00,2c,00,2d,00,31,00,33,00,30,00,00,00[HKEY_CLASSES_ROOT\MSCFile\DefaultIcon]
@="%1"[HKEY_CLASSES_ROOT\MSCFile\Shell]
[HKEY_CLASSES_ROOT\MSCFile\Shell\Author]
@="作者(&A)"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,6d,00,63,00,62,00,61,00,73,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,31,00,33,00,33,00,35,00,31,00,00,00[HKEY_CLASSES_ROOT\MSCFile\Shell\Author\Command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,61,00,20,00,22,00,25,00,31,00,22,\
00,20,00,25,00,2a,00,00,00[HKEY_CLASSES_ROOT\MSCFile\Shell\Open]
@="打开(&O)"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,6d,00,63,00,62,00,61,00,73,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,31,00,33,00,33,00,34,00,39,00,00,00[HKEY_CLASSES_ROOT\MSCFile\Shell\Open\Command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,\
00,00,00[HKEY_CLASSES_ROOT\MSCFile\Shell\RunAs]
@="运行方式(&U)..."
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,6d,00,6d,00,63,00,62,00,61,00,73,00,65,00,2e,00,64,00,6c,00,6c,00,2c,00,\
2d,00,31,00,33,00,33,00,35,00,30,00,00,00[HKEY_CLASSES_ROOT\MSCFile\Shell\RunAs\Command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,00,22,00,20,00,25,00,2a,\
00,00,00[HKEY_CLASSES_ROOT\MSCFile\shellex]
[HKEY_CLASSES_ROOT\MSCFile\shellex\IconHandler]
@="{7A80E4A8-8005-11D2-BCF8-00C04F72C717}"
网上还有其它的修复方法:
1、将注册表(进入注册表方法:开始-运行-regedit)项HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC\{8FC0B734-A0E1-11D1-A7D3-0000F87571E3}的Restrict_Run值改为0,或者HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC下将 RestrictToPermittedSnapins 的值设置为 0。查了下我的电脑注册表,正常情况下,并没有HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC,所以可以直接删除HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC(HKEY_CURRENT_USER\Software\Policies\Microsoft可要保留下来,只删除MMC这一级)。
2、注册表HKEY_CLASSES_ROOT\CLSID\{8FC0B734-A0E1-11D1-A7D3-0000F87571E3}\InProcServer32下,把其中的默认值改成:%SystemRoot%\System32\GPEdit.dll。
以上修改注册表,可能需要重启才能生效。
3、检查环境变量: 右击“我的电脑”-属性-高级-环境变量-系统变量,检查Path值中是否有:%Systemroot%\System32;%Systemroot%;%Systemroot%\system32\WBEM。这个修复是为了让系统能自动找到mmc.exe,不过如果象文首所言直接浏览选择mmc.exe,也就不需要检查这里了,当然运行其它程序还是需要环境变量的,否则你直接运行regedit,系统就不会自动去c:\windows\system32\下寻找并执行regedit.exe。
4、开始-运行,输入regsvr32 filemgmt.dll,有时也会要求重新注册GPEdit.dll:regsvr32 GPEdit.dll。
这些一般是解决打不开组策略的方法,如果出现打开方式的窗口,还是用文首的方法比较好。
>> 除非说明均为原创,如转载请注明来源于http://www.stormcn.cn/post/670.html