Overview
This document goes over the process to add shares and mapped network drives to a device's inventory record. This process uses the script attached to the document.
This script IS NOT supported by Ivanti support. Please leave a comment on the document if you run into any issues. Do not contact Ivanti support for issues with this script.
Details
This script gathers the following data:
Local Shares - These are local directories that are shared such as C$
- Shared Path
- Share Name
- Share Permissions
- Ex: Everyone: Read; Administrators: Full Control
Mapped Drives - These are drives mapped by a user.
- Drive Letter
- Mapped Path
- User that mapped the drive
Instructions
Before doing anything else, you'll need to deploy the attached powershell script to endpoints that you want this data to be gathered for. This can be done using a powershell distribution package. Once that's done, proceed to the steps below:
Head to Tools > Reporting/Monitoring > Manage Software List > Custom Data > WMI Items, and click "New".
Use the configs below for local shares and mapped drives:
After clicking OK, you should be prompted to apply these changes. Hit yes and you'll see a window similar to this:
Click "Model now". If the button is grayed out, delete and re-type a letter at the end of the Table Name and it should light up.
Once you're done, make the changes available to clients.
It may take a few inventory scans for this information to get picked up. Once it is, you should see inventory entries like below: