There isn't a 'better way' I'm aware of, but there are some caveats, where
if I were tasked to do something like that, here's how I would approach it.

There's really three "things" you need to do to make this all work.

1) Running as a package/program with SYSTEM rights, you'd want to make up
your own custom WMI namespace likely in root (i.e., not in root cimv2), and
then grant domain users to write to that .  Here's someone's example of how
they did that.  They claimed it worked, but I haven't tested it:
https://social.technet.microsoft.com/Forums/en-US/43f42c19-b4cf-424a-8c95-22cbf791c056/grant-write-permissions-for-domain-users-on-custom-wmi-namespace?forum=ITCG

2) Using the vbscript sample from your examples above, remember to change
this line:
 localNamespace.name = CUSTOM_NAMESPACE  to be the custom namespace you
created in #1.  This vbscript has to be run "only when a user is logged in"
and "with user credentials".  If it were me... I'd have 1 advertisement.
You can have 1 package with both scripts, and two programs.  the vbscript
is what you advertise; but the program for the vbscript has "run another
program first", and it only has to run once per machine.

3) once you've tested #1 and #2 as a deployed advertisement and you see the
stuff you want to see in root\yourCustomNamespace,  then you can super
easily just go into Client Settings, Default client properties, hardware
inventory, and "Add..." the Root\YourCustomNamespace , the mappeddrives
stuff--and any boxes which have run the advert (and had something to say)
will start reporting.



On Wed, Jan 17, 2018 at 9:14 PM, Mead, Renae (DTMB) <[email protected]>
wrote:

> We have a need to inventory mapped network drives and was looking for some
> current documentation on how to achieve this. Is this the most recent and
> valid information out there, or does someone else have a better way? We are
> on Current Branch 1706.
>
>
>
> https://blogs.technet.microsoft.com/breben/2013/08/
> 26/inventory-mapped-drives-in-configmgr-2012/
>
>
>
> https://blogs.technet.microsoft.com/configurationmgr/2008/12/18/
> configmgr-2007-how-to-inventory-mapped-drives/
>
>
>
> Thanks,
>
> Renae
>
>
>
>


-- 
Thank you,

Sherry Kissinger

My Parameters:  Standardize. Simplify. Automate
Blog: http://mnscug.org/blogs/sherry-kissinger


Reply via email to