My Title is a suggested solution rather than the actual question. Let me explain. I have a C# ASP.NET 2.0 website that I wrote to run deployments to my many environments. It uses PSExec to kick off deployment executables on different machines. It works great until you try to throw it at a cluster because PSExec isn't cluster aware. PSExec tries to kick off on the cluster, but the cluster isn't an actual machine, and thus, psexec fails miserably. It thinks it's running, but really it isn't. I came up with an alternative. Run PSExec against the active node of the cluster passing the cluster name to the exe that's running there. In order to do that, I'd have to be able to determine the name of the machine that was the active node. Does someone have an idea of how to do this programmatically, or have an alternative suggestion?
Thanks,
Eric <><