Inventory Failing

Duchemin, Dominique 2,011 Reputation points
2021-10-23T01:21:30.617+00:00

Hello,

I am trying to inventory the printers....
I have taken on the article https://osd365.com/network-printer-inventory-using-sccm-microsoft-endpoint-configuration-manager/

But in the InventoryAgent.log I have an error:


Collection: Namespace = \.\root\cimv2; Query = SELECT __CLASS, __PATH, __RELPATH, KeyName, DateInventoried, PrinterDriver, PrinterLocation, PrinterPortName, PrinterQueue, PrintProcessor, PrintServer FROM NETWORKPRINTERS; Timeout = 600 secs. InventoryAgent 10/15/2021 1:57:53 PM 20360 (0x4F88)
Unknown error encountered processing an instance of class NETWORKPRINTERS: 80041001 InventoryAgent 10/15/2021 1:57:53 PM 20360 (0x4F88)


The configuration.mof was updated:


//========================
// Added extensions start
//========================

pragma namespace ("\\.\root\cimv2")

pragma deleteclass("NETWORKPRINTERS", NOFAIL)

[dynamic, provider("RegProv"), ClassContext("Local|HKEY_LOCAL_MACHINE\SOFTWARE\SCCMINVENTORY\NETWORKPRINTERS")]
Class NETWORKPRINTERS
{
[key] string KeyName;
[PropertyContext("PrintServer")] String PrintServer;
[PropertyContext("PrinterQueue")] String PrinterQueue;
[PropertyContext("PrinterLocation")] String PrinterLocation;
[PropertyContext("PrinterDriver")] String PrinterDriver;
[PropertyContext("PrintProcessor")] String PrintProcessor;
[PropertyContext("PrinterPortName")] String PrinterPortName;
[PropertyContext("DateInventoried")] String DateInventoried;
};


The import in Client settings was successfully done:

143113-2021-10-22-18-18-50-network-printers.png


What could be the cause?

Thanks,
Dom

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,436 Reputation points Microsoft External Staff
    2021-10-25T08:11:05.01+00:00

    Hi, @Duchemin, Dominique
    Thank you for posting in Microsoft Q&A forum.

    Have we check the WMI on client to see if we can enum the class NETWORKPRINTERS?
    143376-1.jpg

    If we can not enum it, try to copy the configuration.mof to client and compile it manually:
    mofcomp.exe configuration.mof


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



  2. Garth 5,806 Reputation points
    2021-10-23T13:21:20.313+00:00

    have you confirmed that the inventory is there on the device? https://www.recastsoftware.com/resources/how-to-confirm-that-hardware-inventory-is-working/

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.