Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 959 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 959 Bytes

ClusterEnv

When running on a Windows Failover cluster node, this tool runs a command under a resource name as computername if the application uses the standard APIs.

Usage

clusterenv CLUSTERRESMQ -- powershell -command "ls Env:"
clusterenv  RES2 mmc compmgmt.msc

Usage scenarios include troubleshooting MSMQ in clustered environments.

Notes

As mentioned in the GetHostName documentation, when you are running on a cluster, you can trick the application into using the clustered name resource as the computer name instead of using the node's name. Please note that the Microsoft documentation at this stage is inaccurate and that the environment variable should have a leading and trailing underscore as you can check with the hostname command.