/build/static/layout/Breadcrumb_cap_w.png

VBS Script for map drives

Hi All,

I need a vbs script that I can use to get all map drives on all my devices. I will then use custom inventory rules to pull a report on the outcome of the vbs script.

I have searched Google but do not get want I need. Can someone please a assist me with such a vbs script?

 

thx,


0 Comments   [ + ] Show comments

Answers (3)

Posted by: SMal.tmcc 9 years ago
Red Belt
1
I talked about this in my Lessions from the Field session at Dell World this year.

http://www.itninja.com/blog/view/create-cirs-to-show-current-users-mapped-drives-and-networled-printers-presented-at-dell-world-user-forum-2014-lessions-from-the-field

Comments:
  • I just implemented this idea this week and it works perfectly. - jfrank 9 years ago
Posted by: Nico_K 9 years ago
Red Belt
0
how about ShellCommandTextReturn(cmd /c "wmic netuse list brief")
It shows you the connectionstate, Local Name, Remote Name and Status of all mapped drives

Posted by: Mariusja 9 years ago
Second Degree Green Belt
0
Hi Nico,

I have lost you completely. If I use this inventory rule I how will I get the desire outcome on a report? If I use this inventory rule I don't even have this field under custom inventory rules to report on it.

When I use this rule ShellCommandTextReturn(cscript.exe c:\scripts\ipconfig.vbs) I do get this field under custom inventory rule to report on but the info returned from the inventory rule is incorrect because my vbc script is not correct.

thx,
Marius 

Comments:
  • it is not your script. CIR;s run as system and you need to run the script as current user - SMal.tmcc 9 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ