Friday, September 27, 2013

How to fix DllRegisterServer error 0x80004005

When you try to do a Windows search, you just get the animated search companion. The entry fields and search button are all missing. Open up the User Accounts applet in Control Panel and you'll also see it's all blank.

To fix this, you'll need to re-register jscript.dll but doing that gives you an error with code 0x80004005.

From what I can understand, this looks like a permission issue with the Windows registry. Here's how to fix that error.

First, download SubInACL from Microsoft and install it. Then, open Notepad and paste the following into it:

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


Save the file as reset.cmd into C:\Program Files\Windows Resource Kits\Tools. Remember to change file type from "Text file" to "All Files".

Go to C:\Program Files\Windows Resource Kits\Tools using Windows Explorer and double click reset.cmd to run it. You'll have to wait a while for the command to finish.

Retry regsvr32 jscript.dll command. It should work now.

This tip was taken from this post.