Troubleshooting Code 80041013
Introduction to Code 80041013
Error code, 80041013 occurs when you execute a VBScript connecting to WMI (Windows Management Instrumentation). It means that COM cannot locate a provider referenced in the schema.
The Symptoms you get
The script does not execute as you had hoped. Instead you get a Windows Script Host message box like this picture:
The Cause of Code 80041013
It means that COM cannot locate a provider referenced in the schema. In practical terms it means that the files used by WMI have been deleted or become corrupt.
The Solutions
You need to re-register all the .DLL and .EXE files needed for WMI.
From the CMD prompt, navigate to the %windir%\System32\Wbem directory.
Type the following at the command prompt and then press ENTER:
for %i in (*.dll) do RegSvr32 –s %i
After the .DLLs have been re-registered you will then need to re-register any .EXE files found in the Wbem folder, except for Mofcomp.exe and Wmic.exe. For example, to re-register the executable file Scrcons.exe type the following from the command prompt:
regsvr32 –s scrcons.exe
Example of Error Code 80041013 Script
No examples at present. |