逐梦论坛's Archiver

shillan 发表于 2010-10-2 12:41

jscript.dll中的DllRegisterServer失败 的解决方法

[color=#0000ff]现象:[/color]在“开始→运行→cmd”中输入[b]regsvr32 jscript.dll[/b]时出现“jscript.dll中的dllregisterserver失败。返回代码是:0x80004005”,如图:
[attach]2387[/attach]
  
同时系统搜索无法使用。
  
[color=#ff0000]解决:[/color]
1.下载并安装subinacl,下载地址:[url=http://www.microsoft.com/downloads/details.aspx?familyid=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en]http://www.microsoft.com/downloads/details.aspx?familyid=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en[/url]
2.在c:\program files\windows resource kits\tools文件夹下创建一个名为reset.cmd的文件。
3.编辑reset.cmd文件,将下面的内容复制过去
[quote]subinacl /subkeyreg hkey_local_machine /grant=administrators=f
subinacl /subkeyreg hkey_current_user /grant=administrators=f
subinacl /subkeyreg hkey_classes_root /grant=administrators=f
subinacl /subdirectories %systemdrive% /grant=administrators=f
subinacl /subkeyreg hkey_local_machine /grant=system=f
subinacl /subkeyreg hkey_current_user /grant=system=f
subinacl /subkeyreg hkey_classes_root /grant=system=f
subinacl /subdirectories %systemdrive% /grant=system=f [/quote]
4.运行reset.cmd,命令执行完,再注册即可。出错的搜索也正常了。

另:重新注册所有system32下dll文件的dos宏命令:在运行中输入[b]cmd[/b],在命令提示符下输入:
[quote]for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1[/quote]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.