I was able to solve my problem after 4 days of troubleshooting with 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 start. Then, making sure we saved the OS restore point, we issued the / resetRepository command. After that, the VS 2017 Pro installer was able to run without errors.
EDIT: adding the exact steps and code examples below:
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: from a command prompt with administrator privileges or elevated privileges, run the following command: winmgmt / resetRepository
C:\>winmgmt /resetRepository WMI repository has been reset
Step 7: restart the computer.
Hope this helps anyone who has a problem installing Visual Studio 2017.
SHClark
source share