Skip to content

Windows Failover cluster tool to run command under the clustered name context as computername

License

Notifications You must be signed in to change notification settings

1Dimitri/ClusterEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Windows Failover cluster tool to run command under the clustered name context as computername

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages