I had a similar problem with the VS 2017 installer (similar error message) and I was finally able to solve my problem after 4 days of troubleshooting using Microsoft Support. I am developing on a Dell laptop, and a technician believes that one of the Dell services is causing problems with the winmgmt service.
The following is a command that did not run during troubleshooting. After making sure that we saved the OS restore point, we issued the winmgmt / resetRepository command. After that, the VS 2017 Pro installer was able to run without errors.
Here are the exact steps taken by Microsoft Support:
Step 1. Create a Windows system restore point.
Step 2. At the command prompt with administrator rights or elevated privileges, run the following command: net stop winmgmt
Step 3. Open Windows Explorer and find the path to the folder C: \ windows \ system32 \ WBEM \ and rename the repository folder to another location, for example, to RepositoryOLD (right-click and select "Rename folder").
Step 4: restart the computer.
Step 5: from a command prompt with administrator privileges or elevated privileges, run the following command: net stop winmgmt
C:\>net stop winmgmt The Windows Management Instrumentation service is stopping. The Windows Management Instrumentation service could not be stopped.
Step 6: At a command prompt with administrator rights or elevated privileges, complete the following steps and complete the following steps: winmgmt / resetRepository
C:\>winmgmt /resetRepository WMI repository has been reset
Step 7: restart the computer.
Hope this helps someone else.
SHClark
source share