SCCM Network drives inventory. List all user network mapped drives

Network Drive Inventory Report using SCCM
SCCM HW inventory agent runs as the ‘SYSTEM’ and cannot see the end-users network drives and printers. This post explains the process of creating an SCCM network drive report.

 

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

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

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

keywords in this post: network drive inventory, List all user network drives, SCCM Mapped drives

POWERSHELL PACKAGE 1 (Prerequisite):

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

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

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

 POWERSHELL PACKAGE 2 (Main):

  • SAVE POWERSHELL FILE AS NetworkDriveInventory.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.

Click here to learn how to edit the configuration.mof file.

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

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 everything.
  • 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 ‘NETWORKDRIVES‘
    and that is it. The SCCM resource explorer should soon see the Network drives.
  • You can then use the ‘NETWORKDRIVES‘ class to generate reports or create Queries.

keywords in this post: network drive inventory, List all user network drives, SCCM Mapped drives

Click here to learn more about network printer inventory.

Related Articles

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Luna Stella
2 months ago

Have you created a SQL report using the inventory data?

1
0
Would love your thoughts, please comment.x
()
x