Bob Potts Posted August 11, 2022 Share Posted August 11, 2022 I’ve run into an issue with my versions of eDrawings. When I try to start the program I am prompted with an error that reads “Invalid Class” and the program fails to start. This same error happens across all versions of the program. Quote Link to comment Share on other sites More sharing options...
Contributors Solution Ben Potter Posted August 11, 2022 Contributors Solution Share Posted August 11, 2022 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, Quote Link to comment Share on other sites More sharing options...
Contributors Ben Potter Posted August 2, 2023 Contributors Share Posted August 2, 2023 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. 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. 2. From the command prompt, type ‘net stop winmgmt’ (without the quote marks) and press Enter. 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 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 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.