Jump to content


SCCM 2012 Mapped Network Printers - Hardware Inventory

Recommended Posts

Having trouble pulling the mapped network printers for a user; here’s what I have done so far:


On a test computer ran the attached (zipped) SCCM_REGINI.txt (with regini.exe) to build a registry structure to pull the users network printers (from the CURRENT_USER hive) to a hive called SCCMINV (in LOCAL_MACHINE).



Ran the attached VBS script (SCCM_PRINTER_INV.vbs) to copy the network printers to said hive.



Modified the ‘configuration.mof’ file to look in the hive for the information.



Modified the client agent settings to pull information (classes) from that hive.



I still can’t seem to find the SQL table in my SCCM DB. Anyone have any ideas on where to start?


I have verified the classes being copied on the test client logs:



All the scripts are taken from: http://myitforum.com/myitforumwp/2011/11/23/howto-printer-inventory-script-w-network-printers/

  • See attached ZIP file.

And verified with: http://schadda.blogspot.se/2012/02/sccm-2012-customize-extend-hardware.html


Share this post

Link to post
Share on other sites

I should also mention I have compiled the .MOF on the client as well:


C:\Windows\system32>mofcomp C:\temp\configuration.mof
Microsoft ® MOF Compiler Version 6.1.7600.16385
Copyright © Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: C:\temp\configuration.mof
MOF file has been successfully parsed
Storing data in the repository...
WARNING: File C:\temp\configuration.mof does not contain #PRAGMA AUTORECOVER.
If the WMI repository is rebuilt in the future, the contents of this MOF file wi
ll not be included in the new WMI repository.
To include this MOF file when the WMI Repository is automatically reconstructed,
place the #PRAGMA AUTORECOVER statement on the first line of the MOF file.

Share this post

Link to post
Share on other sites

Thanks Garth! I had a look in there. Don't seem to see it. I see dbo.v_GS_Parallel_Port to PWR_Policy but no PRINTERINV.






I was also under the assumption that I would be able to see the pulled information per device under the Resource Explorer from the CCM console. However, no luck. I am terrible with SQL but my next step was to build a report then then push the above mentioned VBS/INI scripts to more computers; once I verified it is working.

Share this post

Link to post
Share on other sites

Thanks Garth, all looks well. Flows from the client to the site server then gets dumped into the DB.



<![LOG[Collection: Namespace = root\cimv2; Query = SELECT __CLASS, __PATH, 
__RELPATH, KeyName, Comment, Default, DriverName, Local, Location, Name, 
Network, PortName, ServerName, ShareName, UserID FROM PRINTERINV; Timeout = 600 
secs.]LOG]!><time="15:56:28.981+360" date="08-07-2013" 
component="InventoryAgent" context="" type="1" thread="6628" 

DATALDR.LOG on Site Server:

Done: Machine=SPEDERSON(GUID:05875980-F038-4B2C-ADC3-B92CB0F6EA1B) code=0 
(105 stored procs in XH3PYAYJI.MIF)

I'm stuck...

Share this post

Link to post
Share on other sites

The issue is going to be with your sms_def.mof, you will be able to see this by following the either video. Make sure that you connect to root\cimv2 then find your printer class.


Remote PC



Local PC




If you see data within WMI (wbemtest) then force a full inventory using sccm client center.

Share this post

Link to post
Share on other sites

Thanks Garth, I believe this issue is isolated to my workstation (must be WMI issues). As I have ran this on a few others; and it is collecting the data. Interestingly, I am unable to query the SMS_ConsoleUser with WBEMTEST as it crashes when I try to bring up the instances.... regardless this is working now. I will see if I can figure out why that crashes and post any findings.


Faulting application name: wbemtest.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc77f

Faulting module name: OLEAUT32.dll, version: 6.1.7601.17514, time stamp: 0x4ce7c930

Exception code: 0xc0000005

Fault offset: 0x0000000000001029

Faulting process id: 0x145c

Faulting application start time: 0x01ce976b410c00bc

Faulting application path: C:\Windows\System32\Wbem\wbemtest.exe

Faulting module path: C:\Windows\system32\OLEAUT32.dll

Report Id: 73c9f9c7-0366-11e3-9d0c-005056c00008



Share this post

Link to post
Share on other sites

It doesn't exist anymore, you can now work with the hardware inventory classes in the client settings.


Is this guide an easier way to get per user mapped network printers imported into SCCM 2012 ?



Share this post

Link to post
Share on other sites


Apparently the link on myitforum.com is gone...


Any other way to get the user network printer?


Edited by Dom
Add proper link

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...