@echo off
setlocal
set SvcRes=My Generic Service Resource Name
set Cluster=MYCLUSTER
REM Create the (still empty) service resource:
cluster.exe "%Cluster%" resource "%SvcRes%" /create /group:"The Resource Group" /type:"Generic Service"
REM *** Configure the resource dependencies, if necessary:
cluster.exe "%Cluster%" resource "%SvcRes%" /AddDependency:"Drive R:"
REM *** Configure the resource properties:
cluster.exe "%Cluster%" resource "%SvcRes%" /prop Description="Command-line created cluster service resource"
REM *** Configure the private properties of the service itself:
cluster.exe "%Cluster%" resource "%SvcRes%" /priv ServiceName="My Generic Service"
cluster.exe "%Cluster%" resource "%SvcRes%" /priv StartupParameters="-s tartup -p arameters"
REM *** Bring the resource online:
cluster.exe "%Cluster%" resource "%SvcRes%" /online
|