All Products
Search
Document Center

:What do I do if the error message "Server Manager is collecting inventory data. The wizard will be available after data collection finishes" appears when I add roles and features to a Windows instance?

Last Updated:Apr 03, 2023

This topic describes the cause of the following issue and how to resolve the issue: The error message "Server Manager is collecting inventory data. The wizard will be available after data collection finishes" appears when you add roles and features to a Windows instance.

Problem description

When you add roles and features to an instance that runs Windows Server 2012, the following error message appears:

Server Manager is collecting inventory data. The wizard will be available after data collection finishes.

Cause

An error occurs in Windows Management Instrumentation (WMI), you must reset WMI.

Solution

  1. Connect to the Windows instance.

    For more information, see Connect to a Windows instance by using a password or key.

  2. Start Command Prompt.

  3. On the command line, run the following commands to reset WMI.

    Important

    This operation may result in data loss. Before you perform the operation, create snapshots to back up data. For more information, see Create a snapshot of a disk.

    sc config winmgmt start= disabled
    net stop winmgmt /y
    %systemdrive%
    cd %windir%\system32\wbem
    ren repository repository-backup
    for /f %s in ('dir /b *.dll') do regsvr32 /s %s
    sc config winmgmt start= Auto
    net start winmgmt
    dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s