would have been better if you posted this in a right forum!
Server > Scheduler > User Tasks > New Task
Cluster Target Node = from the drop down choose, “any server” while creating the scheduler service. This would enable the scheduler service to automatically run on the “good” node i.e, the IS which is active!
What If we want scheduler to run only on one node in some situations?..How would we select from the list as it puts LogicalServerName instead of respective server name (server1 or server2)
$any will cause the job to run on just one server (as opposed to $all). Which specific server is used is undefined. If one server goes down, the other server will take over the job.
If you want a scheduled task to run on a specific server, mark the task so that it is not “run in cluster.” Disable it on other servers.
My apologies. I’m recalling a setting from an older version.
I guess my primary point about scheduled tasks, notifications, etc. is that they are either configured to use the cluster or they are not. Changing $all to a specific server effectively turns off clustering for that task.
And since the stated goal of the OP was to “run on the good node when the other node is down” changing the task setting is not necessary.