# NAME: Install MSDTC.ps1 # # AUTHOR: Robert Smit # EMAIL: robert.smit@aca-computers.nl # # COMMENT: Script to create a MSDTC resource in a Cluster. # # # You have a royalty-free right to use, modify, reproduce, and # distribute this script file in any way you find useful, provided that # you agree that the creator, owner above has no warranty, obligations, # or liability for such use. # # VERSION HISTORY: # 1.0 7.10.2010 - Initial release # ########################################################################### Servermanagercmd -install Application-Server Servermanagercmd -install AS-Dist-Transaction AS-Ent-Services -allSubFeatures # Create a new HA Server Role - Distributed Transaction Coordinator Add-ClusterServerRole -Name ServerDTC -Storage "Cluster Disk 6" -StaticAddress 192.168.1.1 # Add the MSDTC Service to the new Server Role Get-ClusterGroup ServerDTC | Add-ClusterResource -Name MSDTC-ServerDTC -ResourceType "Distributed Transaction Coordinator" # Create Dependencies for the DTC group Add-ClusterResourceDependency MSDTC-ServerDTC ServerDTC Add-ClusterResourceDependency MSDTC-ServerDTC "Cluster Disk 6" # Start DTC group Start-ClusterGroup ServerDTC