change SCOM agent assignement to other SCOM gateway

if you need to change the assignement of a SCOM gateway to another SCOM gateway, you can do this by this script:

please note, that this script will remove the old assignement and clean up the state directory. if you don’t cleanup the state directory, the agent will after a service restart be assigned again to the old gateway.

Leave a Reply