Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Failed to get class 'DatabaseProperties' from WMI namespace. Error 0x80041002

Ghorphindhel

Member
Messages
8
Reaction score
2
Points
3
Hello All ;)

I'm setting up a new SCCM infrastructure for a client, and I'm running into a problem I've never seen before.

Failed to get class 'DatabaseProperties' from WMI namespace. Error 0x80041002 in inventoryProvider.logs.

All my machines were urgently migrated from our old, no longer functional SCCM infrastructure, and they do the following things perfectly:

- Hardware inventory = OK
- Software center = OK
- Installation of packages/applications/updates from the software center = OK

All clients were migrated from one SCCM infrastructure to the new one via the SCCM client installation, not a script.

The few clients I migrated with a VBS script that automatically enrolls the old client have the same problem.

All my clients are shown as active in the SCCM console.

But there's no Software inventory... ☹ ☹

I tried renaming the "repository" directory in C:\Windows\System32\Wbem\repository.old

1. Stopping the SMS Agent Host service (net stop ccmexec)
2. Stopping the WMI service (net stop winmgmt)
3. Deleting the WMI repository (rmdir /s /q %WINDIR%\System32\wbem\repository)
4. Starting the WMI service (net start winmgmt)
5. Starting the SMS Agent Host service (net start ccmexec)

I tried recompiling the *.mof files

cd %windir%\ccm
for /f %%s in ('dir /s /b *.mof *.mfl') do mofcomp %%s

I tried uninstalling and reinstalling the SCCM client several times.

Nothing works, I still get the same error.

Here are the logs I looked at, as well as an excerpt from the original MOF and a modified MOF.

SCCM_Recompile_MOF_with_Autorecover.log
CcmExec.log
InventoryAgent.log
InventoryProvider.log

Original MOF
/******************************************************************************
Copyright © Microsoft Corporation. All rights reserved.

Synopsis:
MOF encoded definition for CIM document class

DEPENDENCIES: SchemaNamespaces.mof

******************************************************************************/

#pragma autorecover

//////////////////////////////////////////////////////////////////////////////
// namespaces

#pragma namespace("\\\\.\\Root\\Microsoft\\PolicyPlatform")

[
Locale(1033) : ToInstance
]
instance of __Namespace
{
Name = "Models";
};

//////////////////////////////////////////////////////////////////////////////
// base extended status class

[
Abstract,
Description("Base class used when reporting extended status from a provider to Lantern")
]
class PolicyPlatform_ExtendedStatus
{
};

#pragma namespace("\\\\.\\Root\\Microsoft\\PolicyPlatform\\Models")

[
Abstract,
Description("Base class used when reporting extended status from a provider to Lantern")
]
class PolicyPlatform_ExtendedStatus
{
};


Modified MOF


/******************************************************************************
Copyright © Microsoft Corporation. All rights reserved.

Synopsis:
MOF encoded definition for CIM document class

DEPENDENCIES: SchemaNamespaces.mof

******************************************************************************/

#pragma autorecover

//////////////////////////////////////////////////////////////////////////////
// namespaces

#pragma namespace("\\.\Root\Microsoft\PolicyPlatform")

[
Locale(1033) : ToInstance
]
instance of __Namespace
{
Name = "Models";
};

//////////////////////////////////////////////////////////////////////////////
// base extended status class

[
Abstract,
Description("Base class used when reporting extended status from a provider to Lantern")
]
class PolicyPlatform_ExtendedStatus
{
};

#pragma namespace("\\.\Root\Microsoft\PolicyPlatform\Models")

[
Abstract,
Description("Base class used when reporting extended status from a provider to Lantern")
]
class PolicyPlatform_ExtendedStatus
{
};
 

Attachments

I don't know if that will help you, but apparently boundaries can cause this.
I have the same issue but boundaries appear fine though
 
Back
Top