Troubleshooting Error Code 8002801c – DllRegisterServer in COM failed
Introduction to Error Code 8002801c
This is not a VBScript error, but an error with your registry’s permissions.
The Symptoms You Get
When you are using Regsvr32 to register a COM object (e.g. Active-X component)
For example: regsvr32 COM.
What happens is you get: ‘Error accessing the OLE registry.’
The Cause of Code 8002801c
Permissions to the registry is the most likely cause. A trivial cause is you are trying to unregistered a component, that has already been unregistered. Regsrv32 /u.
The Solution
Even if you are a local Administrator, it still possible that you have been locked out of certain Registry keys. Therefore, I suggest that you research which Key / Value your regsvr32 is trying to alter, and take ownership and adjust permissions, then try the command again. Regmon may help you discover the appropriate area of the registry.
Guy Recommends: Permissions Analyzer – Free Active Directory Tool
I like thePermissions Monitor because it enables me to see quickly WHO has permissions to do WHAT. When you launch this tool it analyzes a users effective NTFS permissions for a specific file or folder, takes into account network share access, then displays the results in a nifty desktop dashboard!
Think of all the frustration that this free utility saves when you are troubleshooting authorization problems for users access to a resource. Give this permissions monitor a try – it’s free!
Download Permissions Analyser – Free Active Directory Tool
Example of VBScript with Error 80004005
I have to admit this may not be terribly useful example for your specific problem, but then Code 80004005 is invariably a vague permission problem.
‘VBScript
Dim objScriptPW
Dim strPassword, strValidPWord
Set objScriptPW=CreateObject("ScriptPW.Password")
WScript.Echo "Enter password to run script:"
strPassword=objScriptPW.GetPassword()
If strPassword <> strValidPWord Then WScript.Quit
WScript.Echo "Hi Password"
Guy Recommends: WMI Monitor and It’s Free!
Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems. Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free. Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.
Download your free copy of WMI Monitor
Do you need additional help?
- For interpreting the WSH messages check Diagnose 800 errors.
- For general advice try my 7 Troubleshooting techniques.
- See master list of 0800 errors.
- Codes beginning 08004…
- Codes beginning 08005…
- Codes beginning 08007…
- Codes beginning 0800A…
Give something back?
Would you like to help others? If you have a good example of this error, then please email me, I will publish it with a credit to you:
What next? Try my eBook:
Download my Logon Script eBook for only $6.25
The extra features you get in your eBook include, more pages full of detailed examples. Also, ten ‘how to…’ sections, with screen shots showing which menus to use. Go for Guy’s eBook – and get a printable version with copy enabled and no expiry date.
See also
If you like this page then please share it with your friends