I'm not a scripter, but I think the FOR command tool can help me achieve what I want to do. I need to run a job so that it can create a share within MS Cluster software according to the clustername. So I have found how I can create a resource in cluster by following:
cluster . res "Testshare" /create /group:"ClusterResourcename" /type:"File Share"
cluster . res "Testshare" /priv path="e:\XPPUB"
cluster . res "Testshare" /priv Sharename=XPPUB
cluster . res "Testshare" /priv Remark="XPPUB Share"
cluster . res "Testshare" /prop Description="XPPUB Share"
cluster . res "Testshare" /AddDep:"Disk L:"
cluster . res "Testshare" /AddDep:ClusterResourcename"
My challenge is I have multiple ClusterResourcenames and they all differ, so if someone can help me on this.
Thanks,