Server 2012 R2 - Server Manager refresh faild

Shay Cohen 1 Reputation point
2020-11-10T13:51:40.26+00:00

Hi,

In the server manager I get the following error wen I open the task details:

"servername : Role and feature refresh failed with the following error: Class not registered"
![38832-capture.jpg][1]

Wen I try to add Roles and features I get Class not registered in the Server Selection (I only got this server in the list).
In event viewer I get the following errors:

In ServerManage-MultiMachine Event ID 216
"Invoke method error. Server: localhost, Namespace: root\microsoft\windows\servermanager, Class: MSFT_ServerManagerTasks, Method: GetServerFeature, Error: Class not registered"

In ServerManager-ManagmentProvider Event ID 49
"Get server feature task failed, error: Incorrect function.."

Running the commands "Sfc /scannow" and "DISM /Online /Cleanup-Image /RestoreHealth" didn't solved the problem.

thanks,

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,532 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,180 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
421 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-11-10T14:17:21.087+00:00

    Might try clearing out the cache.
    C:\Users\%username%\AppData\Roaming\Microsoft\MMC

    --please don't forget to Accept as answer if the reply is helpful--


  2. Dave Patrick 426.1K Reputation points MVP
    2020-11-10T14:36:12.82+00:00

    You can also try a repair install by running setup.exe from the root of install media, but time may be better spent standing up a new one, patch fully, migrate roles over to it and move on.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  3. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,686 Reputation points Microsoft Vendor
    2020-11-11T04:51:03.227+00:00

    Hi,

    Please try below commands.

    winmgmt /verifyrepository
    winmgmt /salvagerepository
    winmgmt /resetrepository

    Before you begin, you might want to make a backup:

    Start, CMD (Run As Admin)

    winmgmt /backup %computername%_MM_DD_YEAR.WMI_backup

    Note: Where MM is the month, DD is the date, and YEAR is the year.

    For your reference: https://social.technet.microsoft.com/Forums/en-US/99d37f05-3b74-4318-9b28-1a372bdc86e7/server-2016-server-manager-refresh-error?forum=winservermanager

    Another way to can have a try.

    1. Launch a CMD PROMPT (ADMIN) – make sure it is as an Admin
    2. type cd C:\Windows\System32\wbem\AutoRecover
    3. type for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s’
    4. Launch your SERVER MANAGER and do refresh

    Thanks,

    Eleven

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.


  4. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,686 Reputation points Microsoft Vendor
    2020-11-16T07:05:16.103+00:00

    Hi,

    From the screenshot, there is no system issue and WMI namespace issue. Everthing seems ok.

    In this case, you might need to capture some dumps or traces to further investigate the issue, which I suggest to contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.
     
    You may find phone number for your region accordingly from the link below:
    Global Customer Service phone numbers
    https://support.microsoft.com/en-us/help/4051701/global-customer-service-phone-numbers

    Thanks,

    Eleven

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments