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

Comments

Please log in to comment

Community Chosen Answer

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
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

Answers

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

Answered 11/20/2014 by: Nico_K
Red Belt

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