Associate mount points with local disks in VBscript / WMI

Posted by Mark Unwin on Stack Overflow See other posts from Stack Overflow or by Mark Unwin
Published on 2010-03-15T01:55:21Z Indexed on 2010/03/15 1:59 UTC
Read the original article Hit count: 485

Filed under:
|

I have a VBscript that outputs various config items about a system. Both hardware and software. I can output disks and their associated partitions. I can output mount points. I do not seem to be able to associate a mount point with a local disk (where it actually is a local disk).

I need to be able to do this using VBscript, so as to fit in with the rest of the ~2000 lines of code. I do NOT want to run some other program graphically. I know the disk manager service can show me (My Computer -> Manage -> Disk Management), but this is not what I need. I need to be able to do this remotely via VBscript.

I am open to running an .exe from the VBscript and piping the output back into VBscript and massaging it from there.

Any idea's ? Thanks in advance.

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about wmi