Lately I noticed that the server manager of one of the Windows 2012 R2 File servers refresh is failing continuously, a normal reboot and normal checks/scans didn’t fix the problem and i ended having the below screen shot.
The details of the failure was “Call was cancelled by the message filter”
I have noticed in the event viewer that the below error is repeated all the way in the server event viewer (Event ID 1000 – Faulting application Cscript.exe)
The Server Manager wasn’t the only one with error but the File Server Resource Manager (FSRM) MMC returned error when i opened it and it was unable to connect to the WMI repository.
So after extensive search the most recommended solution was to recompile and refresh the MOF files on the Windows 2012R2 server. Several people reported that it didn’t work with them so i am sharing below the exact steps i did to work it out.
- Ensure all MMC including Server Manager is closed.
- Open Elevated CMD prompt
- Navigate to C:WindowsSsytem32wbemAutoRecover (Its very important to run it from the AutoRecover folder and not the wbem root.
- It will start Parsing the MOF files (one by one) till the end as shown in the below screenshot
- You should get the done confirmation after each MOF file is parsed. If it hanged on “Storing data in the repository” for long time with no action then you need to kill the “WMI Provider Host” from the Task Manager as shown below. As soon as the WMI provider task is ended the above command that was hanged will continue running without any problem.
- Reboot the Server