Scripting the creation of your clusters or the resources you want to add in your cluster? Some services are not available as named resources, but you can add them as a Generic Service. By email I got a question about the Remote Desktop Connection Broker, which is not available as a named resource type but as a generic service. This means you’ll need to know the service name of the service you wish to add. Below I have a script creating a cluster group and adding the remote desktop connection broker.
If you’re going to use it you’ll need to edit the IP-addresses, group name and cluster name.
REM CREATE CLUSTER GROUP AND ADD REMOTE DESKTOP CONNECTION BROKER
cluster group "RCB" /CREATE
cluster res "RCB" /create /group:"RCB" /type:"Network Name" /priv name=RCBdnsname=RCB
cluster res "IP Address 192.168.10.60" /create /group:"RCB" /type:"IP Address" /priv address=192.168.10.70 subnetmask=255.255.255.0
cluster res "RCB" /adddep:"IP Address 192.168.10.70"
cluster group "RCB" /on
cluster myClusterName res “RCB” /create /group:GenSvcGroup /type:"Generic Service"
cluster myClusterName res “RCB” /prop RestartAction="0"
REM HERE WE ADD THE SERVICE
cluster myClusterName res “RCB” /priv ServiceName=TSSDIS
cluster myClusterName res “RCB” /priv StartupParameters="-k netsvcs"
cluster myClusterName res “RCB” /on