Would any of this code be helpful?
===============================================
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer _
& "\root\cimv2")
Set colDiskDrives = objWMIService.ExecQuery ("Select * from Win32_DiskDrive")
on error resume next
For each objDiskDrive in colDiskDrives
Wscript.Echo "Bytes Per Sector : " & objDiskDrive.BytesPerSector
Wscript.Echo "Caption : " & objDiskDrive.Caption
Wscript.Echo "Device ID : " & objDiskDrive.DeviceID
Wscript.Echo "Index : " & objDiskDrive.Index
Wscript.Echo "Interface Type : " & objDiskDrive.InterfaceType
Wscript.Echo "Media Type : " & objDiskDrive.MediaType
Wscript.Echo "Model : " & objDiskDrive.Model
Wscript.Echo "Name : " & objDiskDrive.Name
Wscript.Echo "Partitions : " & objDiskDrive.Partitions
Wscript.Echo "SCSI Bus : " & objDiskDrive.SCSIBus
Wscript.Echo "SCSI Logical Unit : " & objDiskDrive.SCSILogicalUnit
Wscript.Echo "SCSI Port : " & objDiskDrive.SCSIPort
Wscript.Echo "SCSI TargetId : " & objDiskDrive.SCSITargetId
Wscript.Echo "Size : " & objDiskDrive.Size
' Wscript.Echo "Sectors Per Track: " & vbTab & _
' objDiskDrive.SectorsPerTrack
' Wscript.Echo "Signature: " & vbTab & objDiskDrive.Signature
' Wscript.Echo "PNP DeviceID: " & vbTab & objDiskDrive.PNPDeviceID
' Wscript.Echo "Manufacturer: " & vbTab & objDiskDrive.Manufacturer
' Wscript.Echo "Media Loaded: " & vbTab & objDiskDrive.MediaLoaded
' Wscript.Echo "Status: " & vbTab & objDiskDrive.Status
' Wscript.Echo "Total Cylinders: " & vbTab & _
' objDiskDrive.TotalCylinders
' Wscript.Echo "Total Heads: " & vbTab & objDiskDrive.TotalHeads
' Wscript.Echo "Total Sectors: " & vbTab & objDiskDrive.TotalSectors
' Wscript.Echo "Total Tracks: " & vbTab & objDiskDrive.TotalTracks
' Wscript.Echo "Tracks Per Cylinder: " & vbTab & _
' objDiskDrive.TracksPerCylinder
' For i = Lbound(objDiskDrive.Capabilities) to Ubound(objDiskDrive.Capabilities)
' Wscript.Echo "Capabilities: " & vbTab & objDiskDrive.Capabilities(i)
' Next
wscript.echo
Next
===============================================
--
And always try the MS KB first before posting.
The answer is probably already posted.
MS KB:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;KBHOWTO
----
Mark-Allen Perry
ALPHA Systems
Marly, Switzerland
mark-allen_AT_mvps_DOT_org
Hi there
i have to find out which partitions do exist on harddisk 0 on a large number
on computers.
found a way to do it with a script using diskpart unfortunately this does
not work on Windows NT.
i need the existing drive letters for this partitions on Windows NT 4.0 SP6
and Windows 2000 / XP...
does anyone know a way to get this info by WSH-Script, shell script or a
little command line tool?
Thanks in advance