Jump to content

eDrawings Invalid Class error


Bob Potts
 Share

Go to solution Solved by Ben Potter,

Recommended Posts

  • Contributors
  • Solution

Below are the Troubleshooting steps for the Invalid Class error with eDrawings.

The Windows® Management Instrumentation service can cause this issue. This service could be corrupt, disabled or faulty. A related symptom of this issue is that the System Information fails to retrieve information or raises an error.

First Check:

To check if the WMI service is started, go to Windows Start > type services > open Services Application > check if the service for Windows Management Instrument is started. If it is stopped, right click on the service and click Start.

Second Check:

1.Proceed to the following folder (enter the following in Windows Explorer):

%SystemRoot%\System32\Wbem\Repository

2. Delete or rename the "$WinMgmt.CFG" file in the folder. Leave the FS folder as is because the recreation of this CFG file requires these FS files.

3. In the System Configuration Utility (Start > Run, type MSCONFIG), ensure that you enabled the Windows Management Instrumentation/WMI services in the "Services" tab.

4. Reboot the computer to rebuild  the CFG.

Third Check:

1. Run wmimgmt.msc

2. RMB the WMI Control (Local) > Properties

If Failed to initialize all required WMI classes shows up under the General Tab, then the issue is with the WMI files.

The fix is to use the CMD prompt to fix the files in the C:\windows\system32\wbem location as detailed below.

You can copy the entire script into the window and it may take 1-2 minutes to complete….

STEP 1: Open the CMD Prompt as Admin and navigate to the folder by copying pasting:

Cd C:\windows\system32\wbem

STEP 2: Copy/paste these lines into the window and wait for the system to finish

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

regsvr32 cimwin32.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s

for /f %s in ('dir /b *.mof') do mofcomp %s

for /f %s in ('dir /b *.mfl') do mofcomp %s

regsvr32 wmisvc.dll

wmiprvse /regserver

 

 

Best Regards,

Link to comment
Share on other sites

  • 11 months later...
  • Contributors

Updated solution

First Check:

To check if the WMI service is started, go to Windows Start > type services > open Services Application > check if the service for Windows Management Instrument is started. If it is stopped, right click on the service and click Start.

A screenshot of the Windows services, showing a right-click on Windows Management Instrumentation, followed by the Start option

Second Check:

1.Proceed to the following folder (enter the following in Windows Explorer):

%SystemRoot%\System32\Wbem\Repository

2. Delete or rename the "$WinMgmt.CFG" file in the folder. Leave the FS folder as is because the recreation of this CFG file requires these FS files.

3. In the System Configuration Utility (Start > Run, type MSCONFIG), ensure that you enabled the Windows Management Instrumentation/WMI services in the "Services" tab.

4. Reboot the computer to rebuild  the CFG.

 

Third Check:

To fix this issue, follow these steps:

 

1.            Open a Windows® command prompt as Administrator.

A screenshot showing the option to click Run as administrator on the Command Prompt.

2.            From the command prompt, type ‘net  stop  winmgmt’ (without the quote marks) and press Enter.

Command Prompt window with the command "net stop winmgmt".

a.            If you are notified that you are stopping other services, click ‘OK’.

3.            From the command prompt, type ‘winmgmt   /resetrepository’ (without the quote marks) and press Enter.

4.            From the command prompt, type ‘net start winmgmt’ and press Enter.

 

Fourth Check:

The fix is to use the CMD prompt to fix the files in the C:\windows\system32\wbem location as detailed below.

You can copy the entire script into the window and it may take 1-2 minutes to complete….

STEP 1: Open the CMD Prompt as Admin and navigate to the folder by copying pasting:

Cd C:\windows\system32\wbem

A Command Prompt window showing navigation to the wbem directory.

STEP 2: Copy/paste these lines into the window and wait for the system to finish

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

regsvr32 cimwin32.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s

for /f %s in ('dir /b *.mof') do mofcomp %s

for /f %s in ('dir /b *.mfl') do mofcomp %s

regsvr32 wmisvc.dll

wmiprvse /regserver

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this page you agree with our Terms of Use and Privacy Policy policies.