Hi Sherry, I found 5 bak files dating 3 years back and 5 bad.bak dated last year. Tried them all, but all they do is remove Hardware inventory action from CM Applet.
When copying them to hinv folder I see Warning in dataldr.log: Warning - could not get current time/date/crc of C:\Program Files\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\configuration.mof (retry later)
When applying back the original configuration.mof file I receive error on applying 2 policies in PolicyEvaluator.log:
<![LOG[Failed to compile action '{091bb494-310a-4acc-8351-66ecab5e7d8a}' in policy '{bede4f4a-65f8-41f7-89bb-02b01bc5862b}'
Namespace: \\.\ROOT\ccm\Policy\Machine\RequestedConfig
Compiler Error: Phase 3, Object: 116, Error: 80041002
Action Data:
instance of InventoryAction
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{f828070c-65cd-4db2-bf3c-66351fd83e55}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
DefaultTimeout = 600000;
ReportTimeout = 4838400;
Description = "Hardware";
ReportType = "Delta";
ReportDestination = "mp:MP_HinvEndpoint";
InventoryActionLastUpdateTime = "20181019064204.000000+000";
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{3597d572-2cc6-4662-a2a2-41cce07aa4d5}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "CCM_System";
DataItemID = "{00000000-0000-0000-0001-000000000009}";
Namespace = "\\\\.\\root\\ccm\\invagt";
Properties = "Name, SMSID, Domain, SystemRole, SystemType, LocalDateTime";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{3f5f9f20-873f-4184-b1ea-ca9e7998f55a}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32Reg_SMSGuestVirtualMachine64";
DataItemID = "{00ABACED-2403-48CE-8CD0-FE646F2285B6}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "InstanceKey, PhysicalHostName, PhysicalHostNameFullyQualified";
Timeout = 600000;
Context = {
instance of InventoryDataContext
{
Name = "__ProviderArchitecture";
Type = "3";
Value = {"64"};
},
instance of InventoryDataContext
{
Name = "__RequiredArchitecture";
Type = "11";
Value = {"true"};
}};
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{7f377e36-c89a-4148-b0f0-632d34d58ec2}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32_SystemEnclosure";
DataItemID = "{03637D1A-8101-4CC6-A883-4F9D7F7C6373}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "ChassisTypes, Manufacturer, Model, SerialNumber, SMBIOSAssetTag, Tag";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{a34ab104-72c3-41f1-94d4-6bf473e8de78}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "SMS_Windows8Application";
DataItemID = "{1558682F-ABD5-4C7D-AAD7-06A7FF63836D}";
Namespace = "root\\cimv2\\sms";
Properties = "ApplicationName, Architecture, ConfigMgrManaged, DependencyApplicationNames, FamilyName, FullName, InstalledLocation, IsFramework, Publisher, PublisherId, Version";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{71fb3169-4921-4faa-98c8-dbb528bd9323}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "SMS_PowerSettings";
DataItemID = "{1611EA8E-1853-4CB7-83CF-8C76BB0C2D28}";
Namespace = "\\\\.\\root\\cimv2\\sms";
Properties = "ACSettingIndex, ACValue, DCSettingIndex, DCValue, GUID, Name, UnitSpecifier";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{7272dc48-808d-4ffc-aa51-aa85e1023375}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32Reg_SMSAdvancedClientSSLConfiguration";
DataItemID = "{16C6E5B9-419A-4AB8-9210-A7866EA426D8}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "CertificateSelectionCriteria, CertificateStore, ClientAlwaysOnInternet, HttpsStateFlags, InstanceKey, InternetMPHostName, SelectFirstCertificate";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{19526d16-fe41-4a12-8e27-0979bbe0f549}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32_SCSIController";
DataItemID = "{1AFBE4CD-B154-4169-9A3C-78BAB8CA2981}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "Availability, Description, DeviceID, DriverName, HardwareVersion, Index, Manufacturer, Name, Status";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{50461aa0-422e-455f-879a-fa39c9f4790f}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "SMS_Processor";
DataItemID = "{2403F3C1-A2A9-4F6D-AF0A-3C670CCB3826}";
Namespace = "\\\\.\\root\\cimv2\\sms";
Properties = "AddressWidth, BrandID, CPUHash, CPUKey, DataWidth, DeviceID, Family, Is64Bit, IsHyperthreadCapable, IsMobile, IsTrustedExecutionCapable, IsVitualizationCapable, Manufacturer, MaxClockSpeed, Name, NormSpeed, NumberOfCores, NumberOfLogicalProcessors, PCache, ProcessorId, ProcessorType, Revision, SocketDesignation, Status, SystemName, Version";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{6793929e-4d52-4fc4-9a2a-00bcd152fd2c}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "SMS_ActiveSyncService";
DataItemID = "{259A7793-D88C-4AC9-8BC9-3AD2B128AA55}";
Namespace = "root\\SmsDm";
Properties = "LastSyncTime, MajorVersion, MinorVersion";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{a354c961-78b4-486f-a6eb-5320eab8bafd}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32_UserProfile";
DataItemID = "{25F9D56A-307B-422D-A716-B88F1D2471A3}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "HealthStatus, LocalPath, RoamingConfigured, RoamingPath, RoamingPreference, SID, Special, Status";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{a773db23-79cf-475e-9bf7-f54d5d7b4dd0}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32_OptionalFeature";
DataItemID = "{2B64D89B-687E-4091-ABC5-E13E5006842E}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "Caption, Description, InstallDate, InstallState, Name, Status";
Timeout = 600000;
};
instance of InventoryDataItem
{
PolicyID = "{bede4f4a-65f8-41f7-89bb-02b01bc5862b}";
PolicyVersion = "63.00";
PolicySource = "SMS:PSM";
PolicyRuleID = "{091bb494-310a-4acc-8351-66ecab5e7d8a}";
PolicyInstanceID = "{bfb153a7-b4f5-4889-b508-53aca0c35302}";
InventoryActionID = "{00000000-0000-0000-0000-000000000001}";
ItemClass = "Win32_PhysicalMemory";
DataItemID = "{2BE868B4-4CDB-4D18-B1BA-3C7A74C3B3AB}";
Namespace = "\\\\.\\root\\cimv2";
Properties = "BankLabel, Capacity, Caption, CreationClassName, DataWidth, Description, 1.1.1601 0:00:00 1682186272 (0x64442020)
Bad policy dumped to C:\Windows\CCM\Temp\badpolicy-SMS_PSM-{bede4f4a-65f8-41f7-89bb-02b01bc5862b}-63.00-{091bb494-310a-4acc-8351-66ecab5e7d8a}.txt PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
Already sent a policy rule application failure status message within the last 6 hours, not sending. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
Failed to apply policy rule {091bb494-310a-4acc-8351-66ecab5e7d8a}. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
The policy CCM_Policy_Policy5.PolicyID="{bede4f4a-65f8-41f7-89bb-02b01bc5862b}",PolicySource="SMS:PSM",PolicyVersion="63.00" failed to compile. State has been set to 'Error' and policy will be rolled back. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
Bad policy dumped to C:\Windows\CCM\Temp\badpolicy-SMS_PSM-{bede4f4a-65f8-41f7-89bb-02b01bc5862b}-63.00-{091bb494-310a-4acc-8351-66ecab5e7d8a}.txt PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
Already sent a policy rule application failure status message within the last 6 hours, not sending. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
Failed to apply policy rule {091bb494-310a-4acc-8351-66ecab5e7d8a}. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
The policy CCM_Policy_Policy5.PolicyID="{bede4f4a-65f8-41f7-89bb-02b01bc5862b}",PolicySource="SMS:PSM",PolicyVersion="63.00" failed to compile. State has been set to 'Error' and policy will be rolled back. PolicyAgent_PolicyEvaluator 19.10.2018 9:11:00 18916 (0x49E4)
So what can I do about sms_def.mof file?