Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VbScript solution... Query partition mount points on Windows 2000?

Posted on 2007-04-02
4
Medium Priority
?
1,499 Views
Last Modified: 2013-11-30
I am currently using the WMI to query partition information about the local drive, but am struggling to find a way to get the Mount Point of a partition if it doesn't have a drive letter assigned.

It appears that there are 3 main WMI classes that deal with local drive partitions...
Win32_DiskPartition
Win32_LogicalDisk
Win32_LogicalDiskToPartition

The only class to return free space information is LogicalDiskToPartition, but this doesn't detect partitions that aren't assigned a drive letter.

We have partitions that have mount points instead of drive letters, and i need to interrogate these. Does anyone have any information regarding any other classes or methods i could use to loop through each partition on a machine taking free space, mount path (or driver letter) and volume name information as i go?

There is a Win32_Volume and Win32_MountPoint class in Windows 2003 and later... why did they wait this long to release them!?

Any help will be much appreciated.

Thanks,
Dez
0
Comment
Question by:DjDezmond
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 18839087
Isn't the info available in the Disk manager ?

If so, you should be able to access it somehow.

Other option is to run a batch file that simply does a DIR
of each partition to a text file, and pull the info out.

I hope this helps !
0
 
LVL 9

Author Comment

by:DjDezmond
ID: 18843286
Thanks, but that wouldn't work as some of the partitions might be hidden, or without drive letters.

I think i just have to except that i wont be able to programmatically do this without using 3rd party tools.
0
 
LVL 63

Accepted Solution

by:
SysExpert earned 1000 total points
ID: 18843993
See if Winmsd recognizes all partitions, and gives you the info you need.

You should be able to extract data from the text file export.

I hope this helps !
0
 
LVL 9

Author Comment

by:DjDezmond
ID: 18849491
Yea ive used PQDisk to log a simple show command... im now splitting the log file up to extract the info i need... seems to be doing the trick.

Ill accept your solution, although it wasn't what i did in the end... but thanks for your help all the same!

Dez
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question