Get the shared disk drive using the scripts
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Get the shared disk drive using the scripts

 
Post new topic   Reply to topic    Windows Server Forum Index -> Clustering
Author Message
Rajesh Kumar Choudhary
Guest





Posted: Mon Dec 20, 2004 4:35 pm    Post subject: Get the shared disk drive using the scripts Reply with 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
Back to top
Shon Shah [MSFT]
Guest





Posted: Tue Dec 21, 2004 3:10 am    Post subject: Re: Get the shared disk drive using the scripts Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Clustering All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB