Network Printer inventory Using SCCM [Microsoft endpoint configuration manager]

SCCM HW inventory agent runs as the ‘SYSTEM’ and cannot see the end-users network drives and printers.

The following two step process will help circumvent the above stated limitation.

1) CREATE HKEY_LOCAL_MACHINE\SOFTWARE\SCCMINVENTORY\NETWORKPRINTERS PATH IN THE REGISTRY.

  • Create a SCCM package.
  • The package should run as administrator.
  • The package should run whether or not a user is logged on.

POWERSHELL PACKAGE 1 (Prerequisite):

  • SAVE POWERSHELL FILE AS: PrinterInvRegSetup.ps1
  • SETUP THE SCCM PACKAGE/PROGRAM WITH COMMAND LINE:

2) CAPTURE CURRENT USER’S PRINTERS AND WRITE THOSE ENTRIES TO THE ABOVE CREATED REGISTRY KEYS.

  • Create a SCCM package
  • The package should be run only when a user is logged in.

 POWERSHELL PACKAGE 2 (Main):

  • SAVE POWERSHELL FILE AS: NetworkPrinterInventory.ps1
  • SETUP THE SCCM PACKAGE/PROGRAM WITH COMMAND LINE:

3) CREATE A DEPLOYMENT AND SET IT TO ‘RUN ALWAYS’ AND MAKE IT A REQUIREMENT.

  • Now deploy the second package and set the first package as a prerequisite (Check the box – Always run the prerequisite package)
  • The deployment should be set to run every 4 hours and ‘Always rerun’. Mark the deployment as required.

4) ADD THE FOLLOWING IN BETWEEN THE EXTENSION SECTION WITHIN YOUR CONFIGURATION.MOF.

5) SAVE THE BELOW DATA INTO A FILE CALLED ‘AWESOME.MOF’.

6) IMPORT ‘AWESOME.MOF’ INTO SCCM DEFAULT CLIENT SETTINGS.

  • Either import the above MOF file into the Client Setting/Default Client Settings/Hardware Inventory/Classes/Import. Select the option to import every thing.
  • Alternatively, if you have compiled the MOF manually on the PC, Add a new reporting class by clicking the ‘Add’ button and connecting to the PC and selecting the WMI class ‘NETWORKPRINTERS‘
    and that is it. The SCCM resource explorer should soon see the Network Printers.

Related Articles

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x