Re: find out which partiton
From: Matthias Tacke (Matthias_at_Tacke.de)
Date: 09/12/04
- Next message: Randall Flag: "Re: find out which partiton"
- Previous message: Matthias Tacke: "Re: find out which partiton"
- In reply to: Randall Flagg: "find out which partiton"
- Next in thread: Randall Flag: "Re: find out which partiton"
- Reply: Randall Flag: "Re: find out which partiton"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 12 Sep 2004 04:30:28 +0200
"Randall Flagg" wrote:
>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
>
Hi Randall,
you could use the Microsoft TechNet: Scriptomatic Tool
http://www.microsoft.com/technet/community/scriptcenter/tools/wmimatic.mspx
to generate a script which gathers information through wmi.
On nt this require the installation of
WMI CORE 1.5 for Windows NT 4.0
http://www.microsoft.com/downloads/release.asp?ReleaseID=18491
IMO the relevant keys are:
scriptomatic.hta(Win32_DiskDrive)
scriptomatic.hta(Win32_DiskPartition)
scriptomatic.hta(Win32_LogicalDisk)
scriptomatic.hta(Win32_OperatingSystem)
In msdn there is a page for win32_Volume but this isn't supported in
scriptomatic and since I'm a wsh newbie I'm stuck here.
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_volume.asp
Based on logical drive/partition sizes you can _guess_ which partition
has what letter assigned. (On my system I've two equally sized disks
with the same partitioning scheme, so I've nothing to distinguish)
Sorry for my previous empty posting, tried to cancel with no success :-)
-- Greetings Matthias
- Next message: Randall Flag: "Re: find out which partiton"
- Previous message: Matthias Tacke: "Re: find out which partiton"
- In reply to: Randall Flagg: "find out which partiton"
- Next in thread: Randall Flag: "Re: find out which partiton"
- Reply: Randall Flag: "Re: find out which partiton"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|