I’m a PC

The ConfigMgr console could not connect to the ConfigMgr site database

Hoy repentinamente nos encontramos con que ninguna consola de SCCM se podia utilizar, obteniendo el error:

"The ConfigMgr console could not connect to the ConfigMgr site database. Verify that this computer has network connectivity to the SMS Provider computer and that your user account has Remote Activation permissions on both the ConfigMgr site server and SMS Provider computers. For more information, see "How to Configure DCOM Permissions for Configuration Manager Console Connections" in ConfigMgr Help"

Revisando el archivo de log SMSADMINUI.log obteniamos las siguientes lineas:

Error Code:
InvalidClass
\r\nSystem.Management.ManagementException\r\nInvalid class \r\n at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
errorCode)
at
System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()

at
Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryResultsO
bject.d__0.MoveNext()\r\nManagementException details:
instance of __ExtendedStatus
{
Operation = "ExecQuery";
ParameterInfo = "SELECT * FROM SMS_Site WHERE ReportingSiteCode = ''"; ProviderName = "WinMgmt"; }; \r\n
[4][8/8/2008 1:09:29 PM] :Failure while loading required 'WQL' query engine, console cannot connect

Cause: The SMS provider WMI instance was missing



RESOLUCION:

Compilar smsprov.mof utilizando el comando:

mofcomp smsprov.mof

Este archivo se encuentra en C:\Program Files\Microsoft Configuration Manager\bin\i386

Saludos!