Quantcast
Channel: High Availability (Clustering) forum
Viewing all articles
Browse latest Browse all 5654

How to import sched task XML into cluster

$
0
0

I have a 2-node Windows Server 2012 cluster with a SQL Server 2008 R2 resource.  I want to create a cluster aware scheduled task which runs a batch file weekdays at 8am and every hour for 12 hours thereafter.  I already have a sched task which I imported from a stand alone SQL server into both of my cluster nodes before i realized that that does not create a cluster-aware task.  I can export the existing task as an XML file.  I can use this PowerShell to import it into the cluster to make it cluster-aware...

Parameter Set: Xml
Register-ClusteredScheduledTask [-TaskName] <String> [[-TaskType] <ClusterTaskTypeEnum> ] [-Xml] <String> [[-Cluster] <String> ] [[-Resource] <String> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
comes from here...

https://technet.microsoft.com/en-us/library/jj649806(v=wps.630).aspx

Is there any examples of using that syntax?  For ex, what does the -XML string parameter look like?  The above article doesn't have an example of using -XML.  Thanks.




Viewing all articles
Browse latest Browse all 5654

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>