aliload 2008-7-24 10:30
告诉你——如何解除WinXP组策略的锁死难题
[font=宋体][size=9pt] 为保证[/size][/font][size=9pt]Windows XP[/size][font=宋体][size=9pt]系统安全,很多朋友都在公共电脑上设置了组策略的[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]只运行许可的[/size][/font][size=9pt]Windows[/size][font=宋体][size=9pt]应用程序[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]项,以此来防范外来程序对系统的破坏。而疏忽大意或为了防范他人修改组策略,一些朋友干脆连[/size][/font][size=9pt]“gpedit.msc”[/size][font=宋体][size=9pt]文件也一并排除在允许运行程序之外,结果造成系统被锁死,导致无法运行所有程序,无奈之下只得重装系统。其实有因必有果,对此问题还是有解决方法的。[/size][/font]
[size=9pt]
1.[/size][font=宋体][size=9pt]计划任务法[/size][/font]
[font=宋体][size=9pt] 打开[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]控制面板[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]→[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]任务计划[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],启动向导建立一个名为[/size][/font][size=9pt]MMC[/size][font=宋体][size=9pt]的任务计划,执行的程序是[/size][/font][size=9pt]“C:\Windows\System32\mmc.exe”[/size][font=宋体][size=9pt]。完成后,在任务计划窗口右击新建的[/size][/font][size=9pt]MMC[/size][font=宋体][size=9pt]选择[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]运行[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],在打开的控制台程序窗口,单击菜单栏的[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]文件[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]→[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]打开[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],定位到[/size][/font][size=9pt]“C:\Windows\System32\gpedit.msc”[/size][font=宋体][size=9pt]程序,打开组策略编辑窗口,依次展开[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]本地计算机策略[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]→[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]用户配置[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]→[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]管理模板[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]→[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]系统[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],双击右侧窗格的[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]只运行许可的[/size][/font][size=9pt]Windows[/size][font=宋体][size=9pt]应用程序[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],在弹出的窗口将其设置为[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]未配置[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]。单击[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]确定[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]退出并关闭组策略编辑窗口,当系统弹出[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]是否将更改保存到[/size][/font][size=9pt]gpedit.msc”[/size][font=宋体][size=9pt]询问窗口时,单击[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]是[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]确定保存,即可解锁。[/size][/font][size=9pt]
2.[/size][font=宋体][size=9pt]安全模式法[/size][/font]
[font=宋体][size=9pt] 其实组策略的这个限制是通过加载注册表特定键值来实现的,而在安全模式下并不会加载这个限制。重启开机后按住[/size][/font][size=9pt]F8[/size][font=宋体][size=9pt]键,在打开的多重启动菜单窗口,选择[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]带命令提示符的安全模式[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]。进入桌面后,在启动的命令提示符下输入[/size][/font][size=9pt]“C:\Windows\System32\mmc.exe”[/size][font=宋体][size=9pt],启动控制台,再按照如上操作即可解除限制,最后重启正常登录系统即可解锁。此外,组策略的很多限制在安全模式下都无法生效,如果碰到无法解除的限制,不妨进入下寻找解决办法。[/size][/font][size=9pt]
3.[/size][font=宋体][size=9pt]重命名程序法[/size][/font]
[font=宋体][size=9pt] 设置[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]只运行许可的[/size][/font][size=9pt]windows[/size][font=宋体][size=9pt]应用程序[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]策略时,需要添加允许程序到列表中,如果记住了当初设置的许可运行程序名称,并且在允许列表添加的是[/size][/font][size=9pt].com[/size][font=宋体][size=9pt]、[/size][/font][size=9pt].bat[/size][font=宋体][size=9pt]、[/size][/font][size=9pt].exe[/size][font=宋体][size=9pt]之中任意一种类型文件,比如只允许[/size][/font][size=9pt]“qq.exe”[/size][font=宋体][size=9pt]运行,那么就可以打开[/size][/font][size=9pt]“C:\Windows\System32”[/size][font=宋体][size=9pt]文件夹,将其中的[/size][/font][size=9pt]mmc.exe[/size][font=宋体][size=9pt]程序重命名为[/size][/font][size=9pt]qq.exe[/size][font=宋体][size=9pt],再运行即可。同样如果希望保持限制,可将需要运行的程序改名为[/size][/font][size=9pt]qq.exe[/size][font=宋体][size=9pt]运行,但其他人使用电脑时就只能运行[/size][/font][size=9pt]QQ[/size][font=宋体][size=9pt]了。如果允许运行的程序列表中包含有[/size][/font][size=9pt]regedit.exe[/size][font=宋体][size=9pt],还可打开注册表,依次展开[/size][/font][size=9pt]“HKEY_LOCAL_ MACHINE\SOFTWARE\Microsoft\ WindowsNT\CurrentVersion\Winlogon”[/size][font=宋体][size=9pt]分支,双击右侧窗口的[/size][/font][size=9pt]Userinit[/size][font=宋体][size=9pt]子键。在打开的窗口中,将其值更改为[/size][/font][size=9pt]“C:\Windows\System32\userinit.exe,mmc.exe”[/size][font=宋体][size=9pt],来实现[/size][/font][size=9pt]mmc.exe[/size][font=宋体][size=9pt]开机启动。这样修改并重启后,下次开机时即会自动运行控制台,来打开组策略编辑器进行解锁了。[/size][/font][size=9pt]
4.[/size][font=宋体][size=9pt]重命名程序法[/size][/font]
[font=宋体][size=9pt] 组策略的这个设置只能防止用户从[/size][/font][size=9pt] Windows [/size][font=宋体][size=9pt]资源管理器启动程序,其实系统中的很多程序都是可以独立运行的。如开机就加载的桌面进程、系统服务、系统屏幕保护等,它都没有进行阻止,因此只要将[/size][/font][size=9pt]mmc.exe[/size][font=宋体][size=9pt]替换为上述文件即可。以替换屏幕保护[/size][/font][size=9pt]logon.scr[/size][font=宋体][size=9pt]为例,先打开[/size][/font][size=9pt]“C:\Windows\System32\dllcache”[/size][font=宋体][size=9pt]文件夹,找到[/size][/font][size=9pt]logon.scr[/size][font=宋体][size=9pt]文件将它复制到[/size][/font][size=9pt]D:\[/size][font=宋体][size=9pt]盘下,然后在[/size][/font][size=9pt]“C:\windows\System32\dllcache”[/size][font=宋体][size=9pt]文件夹中删除这个屏保文件,来防止系统的文件保护功能阻止我们更改和删除系统文件,这时系统会弹出[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]系统文件已被更改为无法识别版本,请插入[/size][/font][size=9pt]WinXP SP2[/size][font=宋体][size=9pt]光盘修复[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]的询问窗口,单击[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]取消[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]。接着打开[/size][/font][size=9pt]“C:\Windows\System32”[/size][font=宋体][size=9pt]文件夹,找到[/size][/font][size=9pt]logon.scr[/size][font=宋体][size=9pt]文件将其删除,并将[/size][/font][size=9pt]mmc.exe[/size][font=宋体][size=9pt]重命名为[/size][/font][size=9pt]logon.scr[/size][font=宋体][size=9pt]。[/size][/font][size=9pt]
[/size][font=宋体][size=9pt]回到桌面,在空白处右击选择[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]属性[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],在弹出窗口中,单击[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]屏幕保护程序[/size][/font][size=9pt]”[/size][font=宋体][size=9pt]标签,接着在屏幕保护列表中选择[/size][/font][size=9pt]“logon”[/size][font=宋体][size=9pt],单击[/size][/font][size=9pt]“[/size][font=宋体][size=9pt]预览[/size][/font][size=9pt]”[/size][font=宋体][size=9pt],此时虽然系统会提示找不到所选文件,但在后台却启动了控制台程序[/size][/font][size=9pt]“mmc.exe”[/size][font=宋体][size=9pt],对其设置解除限制即可。注意在完成操作后,最好将[/size][/font][size=9pt]d:\logon.scr[/size][font=宋体][size=9pt]文件复制回原文件夹。[/size][/font][size=9pt]
5.[/size][font=宋体][size=9pt]组合键启动法[/size][/font]
[font=宋体][size=9pt] 虽然系统所有程序都被锁死,但按下[/size][/font][size=9pt]Ctrl+Alt+Del[/size][font=宋体][size=9pt]组合键却可以启动任务管理器。既然通过组合键可以启动[/size][/font][size=9pt]taskmgr.exe[/size][font=宋体][size=9pt]程序。那么只要使用[/size][/font][size=9pt]mmcexe[/size][font=宋体][size=9pt]替换[/size][/font][size=9pt]taskmgr.exe[/size][font=宋体][size=9pt],即可启动组策略进行解锁。同上,先进入[/size][/font][size=9pt]“C:\Windows \System32\dllcache”[/size][font=宋体][size=9pt]文件夹,找到[/size][/font][size=9pt]taskmgr.exe[/size][font=宋体][size=9pt]程序将其重命名为[/size][/font][size=9pt]taskmgr1.exe[/size][font=宋体][size=9pt],再进入[/size][/font][size=9pt]“C:\Windows\System32”[/size][font=宋体][size=9pt]文件夹,找到并将[/size][/font][size=9pt]taskmgr.exe[/size][font=宋体][size=9pt]文件重命名为[/size][/font][size=9pt]taskmgr1.exe[/size][font=宋体][size=9pt]。现在将[/size][/font][size=9pt]mmc.exe[/size][font=宋体][size=9pt]文件重命名为[/size][/font][size=9pt]taskmgr.exe[/size][font=宋体][size=9pt],这时再按下[/size][/font][size=9pt]Ctrl+Alt+Del[/size][font=宋体][size=9pt]组合键后,便会发现启动了控制台程序。设置组策略后,将任务管理器恢复回原名称即可[/size][/font][size=9pt][/size]
[font=宋体][size=12pt]些文章来自于[/size][/font][size=12pt]
[/size][url=http://blog.sina.com.cn/killtest][size=12pt][font=Calibri][color=#800080]http://blog.sina.com.cn/killtest[/color][/font][/size][/url][size=12pt][/size]