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?



0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer

I talked about this in my Lessions from the Field session at Dell World this year.

Answered 11/20/2014 by: SMal.tmcc
Red Belt

  • I just implemented this idea this week and it works perfectly.
Please log in to comment


how about ShellCommandTextReturn(cmd /c "wmic netuse list brief")
It shows you the connectionstate, Local Name, Remote Name and Status of all mapped drives

Answered 11/20/2014 by: Nico_K
Red Belt

Please log in to comment
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.

Answered 11/20/2014 by: Mariusja
Second Degree Green Belt

  • it is not your script. CIR;s run as system and you need to run the script as current user
Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Answer this question or Comment on this question for clarity