Shon Shah [MSFT]
Guest
|
Posted:
Tue Dec 21, 2004 3:10 am Post subject:
Re: Get the shared disk drive using the scripts |
|
|
Rajesh,
You can use DeviceName property of ClusPartition object. ClusPartition
object can be obtained from ClusPartitons collection which in turn can be
obtained using Partitions property of ClusDisk object. So it would be
something similar to the one mentioned below to get the drive letter for the
first partition:
objClusDisk.Partitions.Item(1).DeviceName
Hope this helps.
--
Regards,
Shon Shah
Software Design Engineer/Test
Microsoft Cluster Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples, if any, are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Rajesh Kumar Choudhary" <RajeshKumarChoudhary@discussions.microsoft.com>
wrote in message news:69A1C1BF-4D96-4FFD-A231-B9D9D8B90C7E@microsoft.com...
| Quote: | i want to get the shared disk drive of a cluster group.
I am using vbscripts as shown below.
For Each objResource In objGroup.Resources
IF objResource.TypeName="Physical Disk" Then
Set objClusDisk = objResource.Disk
' How to get the disk drive using such code
End IF
Next
Any help in this regard will be highly appreciated.
regards,
rajesh |
|
|